Commit 545eaca2 authored by Janis Streib's avatar Janis Streib

UPD: disable buttons in ta-list when list is empty

parent d8404a8c
Pipeline #90812 passed with stages
in 7 minutes and 36 seconds
......@@ -79,12 +79,12 @@
<hr/>
<b-button-toolbar justify>
<b-button-group class="mx-auto">
<b-button @click="$store.commit('emptyTransactionList')" variant="outline-danger">
<b-button :disabled="$store.state.ta_list == null || $store.state.ta_list.length === 0" @click="$store.commit('emptyTransactionList')" variant="outline-danger">
<font-awesome-icon :icon="['far', 'trash-alt']"></font-awesome-icon>
Liste löschen
</b-button>
<b-button variant="outline-primary" @click="$store.commit('testTransaction')">Testen</b-button>
<b-button variant="outline-success" @click="$store.commit('executeTransaction')">
<b-button :disabled="$store.state.ta_list == null || $store.state.ta_list.length === 0" variant="outline-primary" @click="$store.commit('testTransaction')">Testen</b-button>
<b-button :disabled="$store.state.ta_list == null || $store.state.ta_list.length === 0" variant="outline-success" @click="$store.commit('executeTransaction')">
<font-awesome-icon :icon="['far', 'paper-plane']"></font-awesome-icon>
Anwenden
</b-button>
......
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