Renamed keys and fixed a check in the modal

This commit is contained in:
Patrick van Zadel
2020-06-27 18:54:08 +02:00
parent ec5b765f5c
commit fc46d73b1d
@@ -1455,7 +1455,8 @@ export default {
this.$root.$emit('bv::hide::modal', 'task-modal');
},
destroy () {
if (!window.confirm(this.$t('sureDelete'))) return;
const type = this.$t(this.task.type);
if (!window.confirm(this.$t('sureDeleteType', { type }))) return;
this.destroyTask(this.task);
this.$emit('taskDestroyed', this.task);
this.$root.$emit('bv::hide::modal', 'task-modal');