mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-29 23:46:32 +08:00
Merge pull request #8954 from aignatov-bio/ai-sci-12472-fix-tag-modal-validation
Fix tags modal new tag validation [SCI-12472]
This commit is contained in:
commit
47d5f21f02
1 changed files with 5 additions and 1 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue