Commit 36f56679 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

ADD: show last ta results on demand

parent c8cae6e2
Pipeline #117230 passed with stages
in 5 minutes and 9 seconds
......@@ -143,6 +143,14 @@
Transaktion erfolgreich getestet.
</p>
</template>
<template v-if="visible_results && visible_results.length > 0">
<hr/>
<p class="text-center">
<b-link @click="$bvModal.show('ta_results')">
Letzte Transaktionsergebnisse anzeigen
</b-link>
</p>
</template>
</template>
<DBEditor modal_id="ta-edit"
:object_fq_name="edit_elem.object_fq_name"
......@@ -172,7 +180,9 @@
</pre>
<b-button-group class="d-flex" align="center">
<b-button @click="visible_ta_res_index--" :disabled="visible_ta_res_index === 0">Vorherige</b-button>
<b-button @click="visible_ta_res_index++" :disabled="visible_ta_res_index === (visible_results.length-1)">Nächste</b-button>
<b-button @click="visible_ta_res_index++" :disabled="visible_ta_res_index === (visible_results.length-1)">
Nächste
</b-button>
</b-button-group>
</b-modal>
</b-overlay>
......@@ -260,6 +270,15 @@ export default {
}
}
},
created() {
if (this.$store.state.transaction_result && 'ta_list' in this.$store.state.transaction_result) {
this.$store.state.transaction_result.ta_list.forEach((item, index) => {
if (item.show_result) {
this.visible_results.push(this.$store.state.transaction_result.result[index])
}
})
}
},
data() {
return {
visible_results: [],
......
Markdown is supported
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