need to define active always, in order for it to become false.
This commit is contained in:
@@ -23,17 +23,14 @@ angular.module("umbraco")
|
||||
if (contentApp) {
|
||||
if (vm.model.hideContent) {
|
||||
apps.splice(apps.indexOf(contentApp), 1);
|
||||
} else if (vm.model.openSettings !== true) {
|
||||
contentApp.active = true;
|
||||
}
|
||||
contentApp.active = (vm.model.openSettings !== true);
|
||||
}
|
||||
|
||||
if (vm.model.settings && vm.model.settings.variants) {
|
||||
var settingsApp = apps.find(entry => entry.alias === "settings");
|
||||
if (settingsApp) {
|
||||
if (vm.model.openSettings) {
|
||||
settingsApp.active = true;
|
||||
}
|
||||
settingsApp.active = (vm.model.openSettings === true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +52,7 @@ angular.module("umbraco")
|
||||
|
||||
vm.close = function () {
|
||||
if (vm.model && vm.model.close) {
|
||||
// TODO: At this stage there could very well have been server errors that have been cleared
|
||||
// TODO: At this stage there could very well have been server errors that have been cleared
|
||||
// but if we 'close' we are basically cancelling the value changes which means we'd want to cancel
|
||||
// all of the server errors just cleared. It would be possible to do that but also quite annoying.
|
||||
// The rudimentary way would be to:
|
||||
|
||||
Reference in New Issue
Block a user