Commit ba5a3a1e authored by janis.streib's avatar janis.streib 🦉
Browse files

UPD: reload view on ta-submit

parent 5042fe5f
Pipeline #106680 passed with stages
in 7 minutes and 46 seconds
......@@ -5,7 +5,7 @@
<div id="page-content-wrapper">
<div class="container">
<b-breadcrumb :items="breadcrumbs"/>
<router-view/>
<router-view v-bind:key="$store.state.reload_count"/>
<Footer/>
</div>
</div>
......
......@@ -58,6 +58,7 @@ const store = new Vuex.Store({
transaction_result: JSON.parse(window.localStorage.getItem('transaction_result')) || null,
executing_transaction: JSON.parse(window.localStorage.getItem('executing_transaction')) || false,
show_sidebar: JSON.parse(window.localStorage.getItem('show_sidebar')) || false,
reload_count: 0
},
mutations: {
emptyState(state) {
......@@ -197,6 +198,9 @@ const store = new Vuex.Store({
removeTransactionResult(state) {
state.transaction_result = null
window.localStorage.removeItem('transaction_result')
},
reloadRouterComp(state) {
state.reload_count++
}
},
actions: {
......
......@@ -10,4 +10,4 @@
<style scoped>
</style>
\ No newline at end of file
</style>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment