check for legacyNavbar is undefined when switching scopes so that the state is persistent during the session

Signed-off-by: fnuesse <felix.nuesse@t-online.de>
This commit is contained in:
fnuesse 2018-12-05 22:19:44 +01:00
parent 358e826a77
commit 5ef8c51548
No known key found for this signature in database
GPG key ID: 2089A3431243E819

View file

@ -196,7 +196,9 @@
$scope.legacyNavbarDefault=true;
if (typeof $scope.legacyNavbar === 'undefined') {
$scope.legacyNavbar = $scope.legacyNavbarDefault;
}
$scope.$watch('legacyNavbar', function(newValue, oldValue) {
VaultService.setVaultSetting("vaultNavBarLegacy",newValue);
});