Commit 419c30d5 authored by Janis Streib's avatar Janis Streib 🦉
Browse files

FIXUP

parent e33875ad
Pipeline #117240 passed with stages
in 4 minutes and 52 seconds
......@@ -175,7 +175,7 @@
</b-alert>
<b-form-file :state="import_valid" accept="application/json" v-model="import_file"></b-form-file>
</b-modal>
<b-modal ok-only id="ta_results" title="Transaktionsergebnis" size="lg">
<b-modal ok-only id="ta_results" title="Transaktionsergebnis" size="lg" v-if="visible_results.length > 0">
<template v-if="current_result_ta_object_type == 'wapi_auth'">
<CopyField class="shadow" :text="visible_results[visible_ta_res_index].item[0].token"/>
<b-alert show variant="warning" class="mb-0 mt-3">Bewahren Sie das Token gut auf. Hier werden Sie es nicht
......@@ -207,10 +207,17 @@ export default {
components: {CopyField, Draggable, DBEditor},
computed: {
current_result_ta_entry() {
return this.$store.state.transaction_result.ta_list[this.visible_results[this.visible_ta_res_index].index]
if (this.$store.state.transaction_result && 'ta_list' in this.$store.state.transaction_result && this.visible_results.length > 0) {
return this.$store.state.transaction_result.ta_list[this.visible_results[this.visible_ta_res_index].index]
}
return null
},
current_result_ta_object_type() {
return this.current_result_ta_entry.object_functions[this.current_result_ta_entry.object_function].object_type
const res = this.current_result_ta_entry
if (res !== null) {
return this.current_result_ta_entry.object_functions[this.current_result_ta_entry.object_function].object_type
}
return null
},
visible_results() {
const res = []
......
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