From 6d4f12e3c046ec58d6fde2f8fe467c8120d02876 Mon Sep 17 00:00:00 2001 From: Janis Streib <me@janis-streib.de> Date: Tue, 10 Nov 2020 00:57:09 +0100 Subject: [PATCH] FIXUP --- frontend/src/components/TransactionList.vue | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/TransactionList.vue b/frontend/src/components/TransactionList.vue index 043555868..45181eb4d 100644 --- a/frontend/src/components/TransactionList.vue +++ b/frontend/src/components/TransactionList.vue @@ -176,11 +176,19 @@ <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" 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 - mehr einsehen können! - </b-alert> + <template v-if="visible_results[visible_ta_res_index].item.length === 0"> + <p class="text-center"><i>Leeres Ergebnis zurückgeliefert.</i></p> + </template> + <template v-else-if="current_result_ta_object_type == 'wapi_auth'"> + <template v-if="visible_results[visible_ta_res_index].item[0]"> + <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 + mehr einsehen können! + </b-alert> + </template> + <template v-else> + <p class="text-center"><i>Token nicht einsehbar.</i></p> + </template> </template> <pre v-else> {{ visible_results[visible_ta_res_index].item }} -- GitLab