mirror of
https://github.com/nextcloud/passman.git
synced 2024-11-10 17:27:40 +08:00
Fix for ng-dupes
This commit is contained in:
parent
ded7aa2aed
commit
b195831482
1 changed files with 4 additions and 2 deletions
|
@ -19,10 +19,12 @@
|
|||
},
|
||||
addTags: function (tags) {
|
||||
for (var i = 0; i < tags.length; i++) {
|
||||
if (tags[i].text) {
|
||||
if ($filter('filter')(_tags, {text: tags[i].text}).length === 0) {
|
||||
_tags.push(tags[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
removeTag: function (tag) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue