Fix tags modal new tag validation [SCI-12472]

This commit is contained in:
Anton 2025-10-16 14:20:33 +02:00
parent f43d5cd66e
commit a0b3141816

View file

@ -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 });