This commit is contained in:
2019-06-20 20:54:32 +00:00
parent b409e456e7
commit 0dfcc94862
5 changed files with 10 additions and 12 deletions

View File

@@ -563,16 +563,16 @@ export default {
}
},
addTag() {
//todo: clean the tag to server standards first so it's de-duped in the record
var theTag = this.tagSearchEntry;
theTag = this.$gzutil.normalizeTag(theTag);
//make sure there are no existing of the same tag
//make sure there are no existing of the same tag?
this.pickLists.tags.push(theTag);
this.obj.tags.push(theTag);
this.tagSearchEntry = "";
//add tags to existing picklist so that it contains all the unique tags ever searched for or present in the object
//vm.pickLists.tags+=tags
//vm.pickLists.tags=uniqueonly(vm.pickLists.tags)
this.$gzform.setFormState({
vm: this,
dirty: true
});
}
}
};