From fc46d73b1d39a81dfc84fea0236350d3f09cd6c3 Mon Sep 17 00:00:00 2001 From: Patrick van Zadel Date: Sat, 27 Jun 2020 18:54:08 +0200 Subject: [PATCH] Renamed keys and fixed a check in the modal --- website/client/src/components/tasks/taskModal.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/client/src/components/tasks/taskModal.vue b/website/client/src/components/tasks/taskModal.vue index c7df5f45cb..95198fc472 100644 --- a/website/client/src/components/tasks/taskModal.vue +++ b/website/client/src/components/tasks/taskModal.vue @@ -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');