feat: gamemaster: confirm before deleting user

This commit is contained in:
Settel 2022-04-03 14:41:50 +02:00
parent 8f87f331cc
commit b1154f9567

View File

@ -54,8 +54,10 @@ export default {
this.$emit('close')
},
async deletePlayer() {
await this.$engine.deletePlayer({ id: this.id })
this.$emit('close')
if (confirm(`"${this.name}" löschen?`)) {
await this.$engine.deletePlayer({ id: this.id })
this.$emit('close')
}
},
generateCode() {
this.authcode = ''