aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/js/federationsettingsview.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/js/federationsettingsview.js')
-rw-r--r--apps/settings/js/federationsettingsview.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/apps/settings/js/federationsettingsview.js b/apps/settings/js/federationsettingsview.js
index 602acab5c8d..ca56992b1ed 100644
--- a/apps/settings/js/federationsettingsview.js
+++ b/apps/settings/js/federationsettingsview.js
@@ -15,7 +15,10 @@
* @constructs FederationScopeMenu
* @memberof OC.Settings
* @param {object} options
- * @param {bool} [options.lookupServerUploadEnabled=false] whether uploading to the lookup server is enabled
+ * @param {bool} [options.showFederatedScope=false] whether show the
+ * "v2-federated" scope or not
+ * @param {bool} [options.showPublishedScope=false] whether show the
+ * "v2-published" scope or not
*/
var FederationSettingsView = OC.Backbone.View.extend({
_inputFields: undefined,
@@ -31,7 +34,8 @@
} else {
this._config = new OC.Settings.UserSettings();
}
- this.showFederationScopes = !!options.showFederationScopes;
+ this.showFederatedScope = !!options.showFederatedScope;
+ this.showPublishedScope = !!options.showPublishedScope;
this._inputFields = [
'displayname',
@@ -85,8 +89,11 @@
excludedScopes.push('v2-private');
}
- if (!self.showFederationScopes) {
+ if (!self.showFederatedScope) {
excludedScopes.push('v2-federated');
+ }
+
+ if (!self.showPublishedScope) {
excludedScopes.push('v2-published');
}