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
diff options
context:
space:
mode:
-rw-r--r--js/app/controllers/menu.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/js/app/controllers/menu.js b/js/app/controllers/menu.js
index 36844df3..1506bd1a 100644
--- a/js/app/controllers/menu.js
+++ b/js/app/controllers/menu.js
@@ -193,18 +193,23 @@
});
};
-
-
$scope.legacyNavbarDefault=true;
+ $scope.legacyNavbarAlreadyInitialized=false;
+
if (typeof $scope.legacyNavbar === 'undefined') {
$scope.legacyNavbar = $scope.legacyNavbarDefault;
}
+
$scope.$watch('legacyNavbar', function(newValue, oldValue) {
VaultService.setVaultSetting("vaultNavBarLegacy",newValue);
});
$scope.initializeNavbar = function () {
+ if($scope.legacyNavbarAlreadyInitialized){
+ return;
+ }
$scope.legacyNavbar = VaultService.getVaultSetting('vaultNavBarLegacy',$scope.legacyNavbarDefault);
+ $scope.legacyNavbarAlreadyInitialized=true;
};
$rootScope.$on('credentials_loaded', function () {