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
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-12-30 17:13:00 +0300
committerbrantje <brantje@gmail.com>2016-12-30 17:47:38 +0300
commita224ce4af92356082a07e3012d51713f22b3d047 (patch)
treee3a172c51f17947773c6550a2d244db56572dca4 /js
parent483b13dae74567b1fe3993671f1d768e756a0e3c (diff)
Implement middleware for sharing
Check if sharing is enabled, if not return an empty array. Signed-off-by: brantje <brantje@gmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/app/controllers/credential.js2
-rw-r--r--js/app/controllers/share.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/app/controllers/credential.js b/js/app/controllers/credential.js
index ff1650b5..4fa77a96 100644
--- a/js/app/controllers/credential.js
+++ b/js/app/controllers/credential.js
@@ -198,7 +198,7 @@
$scope.settings = SettingsService.getSettings();
};
- if(!SettingsService.getSetting('user_sharing_enabled')){
+ if(!SettingsService.getSetting('settings_loaded')){
$rootScope.$on('settings_loaded', function () {
settingsLoaded();
});
diff --git a/js/app/controllers/share.js b/js/app/controllers/share.js
index 3ac6b0e6..59c73190 100644
--- a/js/app/controllers/share.js
+++ b/js/app/controllers/share.js
@@ -64,7 +64,7 @@
}
};
- if(!SettingsService.getSetting('user_sharing_enabled')){
+ if(!SettingsService.getSetting('settings_loaded')){
$rootScope.$on('settings_loaded', function () {
settingsLoaded();
});