set form to dirty when add tab, delete tab, add group, and delete group

This commit is contained in:
Mads Rasmussen
2021-09-13 20:29:41 +02:00
committed by Sebastiaan Janssen
parent a1e965cce6
commit c6a1765c95

View File

@@ -534,6 +534,8 @@
scope.openTabAlias = tab.alias;
notifyChanged();
scope.$broadcast('umbOverflowChecker.checkOverflow');
scope.$broadcast('umbOverflowChecker.scrollTo', { position: 'end' });
};
@@ -571,6 +573,8 @@
scope.$broadcast('umbOverflowChecker.checkOverflow');
notifyChanged();
overlayService.close();
}
});
@@ -712,6 +716,8 @@
scope.model.groups = [...scope.model.groups, group];
scope.activateGroup(group);
notifyChanged();
};
scope.activateGroup = selectedGroup => {
@@ -758,6 +764,7 @@
scope.model.groups.splice(index, 1);
overlayService.close();
notifyChanged();
}
});
});
@@ -1023,7 +1030,6 @@
return (result.length > 0);
}
eventBindings.push(scope.$watch('model', (newValue, oldValue) => {
if (newValue !== undefined && newValue.groups !== undefined) {
activate();