Commit b61f11d5 authored by Robert-K's avatar Robert-K
Browse files

UPD: Added confirmation popovers for delete buttons

parent 392d4b20
...@@ -72,10 +72,18 @@ ...@@ -72,10 +72,18 @@
<b-button variant="outline-secondary" @click="cancel"> <b-button variant="outline-secondary" @click="cancel">
Abbrechen Abbrechen
</b-button> </b-button>
<b-button v-if="new_account.parent_login_name !== null" variant="danger" <b-button id="button-account-delete" v-if="new_account.parent_login_name !== null" variant="danger">
@click="deleteAccount">
Löschen Löschen
</b-button> </b-button>
<b-popover ref="popoverAccountDelete" target="button-account-delete" triggers="click" placement="bottom">
<template v-slot:title>Account wirklich löschen?</template>
<b-button variant="danger" @click="deleteAccount">
Löschen
</b-button>
<b-button variant="outline-secondary" @click="$refs.popoverAccountDelete.$emit('close')">
Abbrechen
</b-button>
</b-popover>
<b-button variant="primary" @click="editAccount"> <b-button variant="primary" @click="editAccount">
Änderungen übernehmen Änderungen übernehmen
</b-button> </b-button>
...@@ -193,9 +201,18 @@ ...@@ -193,9 +201,18 @@
<b-button variant="outline-secondary" @click="cancel"> <b-button variant="outline-secondary" @click="cancel">
Abbrechen Abbrechen
</b-button> </b-button>
<b-button variant="danger" @click="deleteToken"> <b-button id="button-token-delete" variant="danger">
Löschen Löschen
</b-button> </b-button>
<b-popover ref="popoverTokenDelete" target="button-token-delete" triggers="click" placement="bottom">
<template v-slot:title>Token wirklich löschen?</template>
<b-button variant="danger" @click="deleteToken">
Löschen
</b-button>
<b-button variant="outline-secondary" @click="$refs.popoverTokenDelete.$emit('close')">
Abbrechen
</b-button>
</b-popover>
<b-button type="submit" variant="primary" @click="editToken"> <b-button type="submit" variant="primary" @click="editToken">
Änderungen übernehmen Änderungen übernehmen
</b-button> </b-button>
......
Supports Markdown
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