From 22ef7785fdf26d42f2d656ac1c6985cbf1073f99 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 4 Oct 2021 21:14:39 +0200 Subject: [PATCH] fix: wrong success message when adding and creating a label to a task --- src/components/tasks/partials/editLabels.vue | 2 +- src/i18n/lang/en.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/tasks/partials/editLabels.vue b/src/components/tasks/partials/editLabels.vue index 838ca25eb..8991554a3 100644 --- a/src/components/tasks/partials/editLabels.vue +++ b/src/components/tasks/partials/editLabels.vue @@ -156,7 +156,7 @@ export default { .then(r => { this.addLabel(r, false) this.labels.push(r) - this.$message.success({message: this.$t('task.label.removeSuccess')}) + this.$message.success({message: this.$t('task.label.addCreateSuccess')}) }) .catch(e => { this.$message.error(e) diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index b70c6e204..7df1566b8 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -625,7 +625,8 @@ "createPlaceholder": "Add this as new label", "addSuccess": "The label has been added successfully.", "createSuccess": "The label has been created successfully.", - "removeSuccess": "The label has been removed successfully." + "removeSuccess": "The label has been removed successfully.", + "addCreateSuccess": "The label has been created and added successfully." }, "priority": { "unset": "Unset",