mirror of
https://github.com/nextcloud/passman.git
synced 2025-02-27 00:43:02 +08:00
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:
parent
358e826a77
commit
5ef8c51548
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue