diff --git a/frontend/src/components/TransactionList.vue b/frontend/src/components/TransactionList.vue index 0435558683939c4b55136b133286c5b52bf7216e..45181eb4d94eb08950c446e1fc9ed3c1a043514c 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 }}