Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/app
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2018-12-06 00:19:44 +0300
committerfnuesse <felix.nuesse@t-online.de>2018-12-06 00:19:44 +0300
commit5ef8c51548f75a546c39d0c40f0c1ea4c5c9390c (patch)
tree1ce98f4db909c2e077d295dead19a592066bedb0 /js/app
parent358e826a77c549e7c6b90753d5b6700b2d6b5311 (diff)
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>
Diffstat (limited to 'js/app')
-rw-r--r--js/app/controllers/menu.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/app/controllers/menu.js b/js/app/controllers/menu.js
index b3960646..36844df3 100644
--- a/js/app/controllers/menu.js
+++ b/js/app/controllers/menu.js
@@ -196,7 +196,9 @@
$scope.legacyNavbarDefault=true;
- $scope.legacyNavbar = $scope.legacyNavbarDefault;
+ if (typeof $scope.legacyNavbar === 'undefined') {
+ $scope.legacyNavbar = $scope.legacyNavbarDefault;
+ }
$scope.$watch('legacyNavbar', function(newValue, oldValue) {
VaultService.setVaultSetting("vaultNavBarLegacy",newValue);
});