Skip to content
Snippets Groups Projects
Commit ba5a3a1e authored by Janis Streib's avatar Janis Streib :owl:
Browse files

UPD: reload view on ta-submit

parent 5042fe5f
No related branches found
No related tags found
No related merge requests found
Pipeline #273734 passed with warnings
......@@ -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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment