mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-07 06:56:18 +08:00
Fix tags modal new tag validation [SCI-12472]
This commit is contained in:
parent
f43d5cd66e
commit
a0b3141816
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