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

FIX: only reload on successful transaction execute

parent e2553cfe
No related branches found
No related tags found
No related merge requests found
Pipeline #273789 passed with warnings
......@@ -38,7 +38,7 @@
</div>
<b-card-body class="element-content">
{{ element.object_fq_name }} {{ function2text(element.object_function).toLowerCase() }}:<br/>
<span v-if="element.object_title">{{element.object_title}}</span>
<span v-if="element.object_title">{{ element.object_title }}</span>
<ul>
<li v-for="field in element.preview_fields" v-bind:key="field">
{{ element.func_descr[field].description_sys_scope }}:
......@@ -110,7 +110,8 @@
<font-awesome-icon :icon="['fas','exclamation-triangle']"/>
Weitere Fehlerinformationen:
</p>
<CopyField class="shadow" variant="danger" :text="JSON.stringify($store.state.transaction_result.error, null, 1)"
<CopyField class="shadow" variant="danger"
:text="JSON.stringify($store.state.transaction_result.error, null, 1)"
multiline/>
</template>
<template v-if="$store.state.transaction_result.type === 'success'">
......@@ -177,7 +178,9 @@ export default {
},
async executeTa() {
await this.$store.dispatch('executeTransaction')
this.$store.commit('reloadRouterComp')
if (this.$store.state.transaction_result.type != 'error') {
this.$store.commit('reloadRouterComp')
}
}
},
data() {
......
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