diff --git a/website/client/src/components/header/banners/privacy.vue b/website/client/src/components/header/banners/privacy.vue index 2e1faf0ac4..6a08194bdc 100644 --- a/website/client/src/components/header/banners/privacy.vue +++ b/website/client/src/components/header/banners/privacy.vue @@ -1,8 +1,8 @@ - + + diff --git a/website/client/src/components/tasks/task.vue b/website/client/src/components/tasks/task.vue index 055c6d87b3..cb31c03c6f 100644 --- a/website/client/src/components/tasks/task.vue +++ b/website/client/src/components/tasks/task.vue @@ -1177,9 +1177,16 @@ export default { moveToBottom () { this.$emit('moveTo', this.task, 'bottom'); }, - destroy () { + async destroy () { const type = this.$t(this.task.type); - if (!window.confirm(this.$t('sureDeleteType', { type }))) return; // eslint-disable-line no-alert + const confirmed = await new Promise(resolve => { + this.$root.$emit('habitica:delete-task-confirm', { + message: this.$t('sureDeleteType', { type }), + taskType: type, + resolve, + }); + }); + if (!confirmed) return; this.destroyTask(this.task); this.$emit('taskDestroyed', this.task); }, diff --git a/website/client/src/components/tasks/taskModal.vue b/website/client/src/components/tasks/taskModal.vue index ac45efe07c..dcfba2c094 100644 --- a/website/client/src/components/tasks/taskModal.vue +++ b/website/client/src/components/tasks/taskModal.vue @@ -150,14 +150,14 @@