From a0b3141816311764331b80f15372fef502d8fcb3 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 16 Oct 2025 14:20:33 +0200 Subject: [PATCH] Fix tags modal new tag validation [SCI-12472] --- app/javascript/vue/shared/tags_modal.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/javascript/vue/shared/tags_modal.vue b/app/javascript/vue/shared/tags_modal.vue index f9679696a..58248b24f 100644 --- a/app/javascript/vue/shared/tags_modal.vue +++ b/app/javascript/vue/shared/tags_modal.vue @@ -127,7 +127,11 @@ export default { }, computed: { validNewTag() { - return this.newTag.name.trim() !== '' && !this.allTags.find(t => t.name.toLowerCase() === this.newTag.name.trim().toLowerCase()); + return this.newTag.name.trim() !== '' && + !this.allTags.find(t => + t.name.toLowerCase() === this.newTag.name.trim().toLowerCase() && + t.color === this.newTag.color + ); }, tagsManagmentUrl() { return users_settings_team_tags_path({ team_id: this.teamId });