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

FIX: only reload on successful transaction execute

parent e2553cfe
Pipeline #107606 passed with stages
in 7 minutes and 43 seconds
......@@ -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() {
......
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