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 @@
<b-button variant="outline-secondary" @click="cancel">
Abbrechen
</b-button>
<b-button v-if="new_account.parent_login_name !== null" variant="danger"
@click="deleteAccount">
<b-button id="button-account-delete" v-if="new_account.parent_login_name !== null" variant="danger">
Löschen
</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">
Änderungen übernehmen
</b-button>
......@@ -193,9 +201,18 @@
<b-button variant="outline-secondary" @click="cancel">
Abbrechen
</b-button>
<b-button id="button-token-delete" variant="danger">
Löschen
</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">
Änderungen übernehmen
</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