itemTag added priority

This commit is contained in:
Daniel Herrero 2018-02-27 07:54:41 +01:00
parent 4e5cbef155
commit e048402223
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@
label = "Tag">
</vn-autocomplete>
<vn-textfield vn-three label="Value" model="itemTag.value"></vn-textfield>
<vn-textfield vn-one type="number" label="Priority" model="itemTag.priority"></vn-textfield>
<vn-one pad-medium-top>
<vn-icon
pointer

View File

@ -47,7 +47,7 @@ class ItemTags {
}
addItemTag() {
this.itemTags.push({value: null, itemFk: this.itemId, tagFk: null, showAddIcon: true});
this.itemTags.push({value: null, itemFk: this.itemId, tagFk: null, priority: null, showAddIcon: true});
this._setIconAdd();
}
@ -72,7 +72,7 @@ class ItemTags {
}
_equalItemTags(tagOld, tagNew) {
return tagOld.tagFk === tagNew.tagFk && tagOld.value === tagNew.value;
return tagOld.tagFk === tagNew.tagFk && tagOld.value === tagNew.value && tagOld.priority === tagNew.priority;
}
submit() {