feat: gamemaster: confirm before deleting user
This commit is contained in:
parent
8f87f331cc
commit
b1154f9567
@ -54,8 +54,10 @@ export default {
|
|||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
},
|
},
|
||||||
async deletePlayer() {
|
async deletePlayer() {
|
||||||
|
if (confirm(`"${this.name}" löschen?`)) {
|
||||||
await this.$engine.deletePlayer({ id: this.id })
|
await this.$engine.deletePlayer({ id: this.id })
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
generateCode() {
|
generateCode() {
|
||||||
this.authcode = ''
|
this.authcode = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user