aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-04-16 18:24:40 +0200
committerMichaIng <micha@dietpi.com>2021-10-23 20:25:40 +0200
commite01af5269883931b8c8096a4dc3bc1c925f4e76c (patch)
treefccdccd03392ec4a562559b258e085e4633ad6f7 /apps
parent0547440069f7a6440b72eb9ac84d0d37be7f7cb8 (diff)
downloadnextcloud-server-e01af5269883931b8c8096a4dc3bc1c925f4e76c.tar.gz
nextcloud-server-e01af5269883931b8c8096a4dc3bc1c925f4e76c.zip
Fix "Federated" scope not shown when the lookup server is disabled
When the lookup server is disabled the address books can still be exchanged between trusted servers. Therefore the user should be able to set the "Federated" scope in that case. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/js/federationsettingsview.js8
-rw-r--r--apps/settings/js/settings/personalInfo.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/settings/js/federationsettingsview.js b/apps/settings/js/federationsettingsview.js
index 602acab5c8d..58e2583546c 100644
--- a/apps/settings/js/federationsettingsview.js
+++ b/apps/settings/js/federationsettingsview.js
@@ -15,7 +15,8 @@
* @constructs FederationScopeMenu
* @memberof OC.Settings
* @param {object} options
- * @param {bool} [options.lookupServerUploadEnabled=false] whether uploading to the lookup server is enabled
+ * @param {bool} [options.showPublishedScope=false] whether show the
+ * "v2-published" scope or not
*/
var FederationSettingsView = OC.Backbone.View.extend({
_inputFields: undefined,
@@ -31,7 +32,7 @@
} else {
this._config = new OC.Settings.UserSettings();
}
- this.showFederationScopes = !!options.showFederationScopes;
+ this.showPublishedScope = !!options.showPublishedScope;
this._inputFields = [
'displayname',
@@ -85,8 +86,7 @@
excludedScopes.push('v2-private');
}
- if (!self.showFederationScopes) {
- excludedScopes.push('v2-federated');
+ if (!self.showPublishedScope) {
excludedScopes.push('v2-published');
}
diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js
index a6c57e55d7c..860eb9ed7b2 100644
--- a/apps/settings/js/settings/personalInfo.js
+++ b/apps/settings/js/settings/personalInfo.js
@@ -204,7 +204,7 @@ window.addEventListener('DOMContentLoaded', function () {
var federationSettingsView = new OC.Settings.FederationSettingsView({
el: settingsEl,
config: userSettings,
- showFederationScopes: !!settingsEl.data('lookup-server-upload-enabled'),
+ showPublishedScope: !!settingsEl.data('lookup-server-upload-enabled'),
});
userSettings.on("sync", function() {