-
+ ng-blur="$ctrl.hasFocus = false"/>
{
@@ -30,11 +31,13 @@ export default class Controller {
this.$scope.form.$setDirty();
}
}
+
_unsetDirtyForm() {
if (this.$scope.form) {
this.$scope.form.$setPristine();
}
}
+
_equalBarcodes(oldBarcode, newBarcode) {
return oldBarcode.id === newBarcode.id && oldBarcode.code === newBarcode.code;
}
diff --git a/client/item/src/niche/item-niche.html b/client/item/src/niche/item-niche.html
index ae30034db..068eedb41 100644
--- a/client/item/src/niche/item-niche.html
+++ b/client/item/src/niche/item-niche.html
@@ -8,7 +8,8 @@
Item Niches
+
+
{
this.niches = response.data;
this.setOldNiches(response);
@@ -95,6 +97,7 @@ export default class Controller {
create: [],
update: []
};
+
this.niches.forEach(niche => {
let isNewNiche = !niche.id;
diff --git a/client/item/src/tags/item-tags.html b/client/item/src/tags/item-tags.html
index 318a5dec7..c92a13292 100644
--- a/client/item/src/tags/item-tags.html
+++ b/client/item/src/tags/item-tags.html
@@ -8,6 +8,7 @@
Item tags
+
+