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>
This commit is contained in:
parent
45d8140add
commit
0518ce849d
|
@ -31,7 +31,7 @@
|
||||||
} else {
|
} else {
|
||||||
this._config = new OC.Settings.UserSettings();
|
this._config = new OC.Settings.UserSettings();
|
||||||
}
|
}
|
||||||
this.showFederationScopes = !!options.showFederationScopes;
|
this.showLookupServerScopes = !!options.showLookupServerScopes;
|
||||||
|
|
||||||
this._inputFields = [
|
this._inputFields = [
|
||||||
'displayname',
|
'displayname',
|
||||||
|
@ -85,8 +85,7 @@
|
||||||
excludedScopes.push('v2-private');
|
excludedScopes.push('v2-private');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!self.showFederationScopes) {
|
if (!self.showLookupServerScopes) {
|
||||||
excludedScopes.push('v2-federated');
|
|
||||||
excludedScopes.push('v2-published');
|
excludedScopes.push('v2-published');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -204,7 +204,7 @@ window.addEventListener('DOMContentLoaded', function () {
|
||||||
var federationSettingsView = new OC.Settings.FederationSettingsView({
|
var federationSettingsView = new OC.Settings.FederationSettingsView({
|
||||||
el: settingsEl,
|
el: settingsEl,
|
||||||
config: userSettings,
|
config: userSettings,
|
||||||
showFederationScopes: !!settingsEl.data('lookup-server-upload-enabled'),
|
showLookupServerScopes: !!settingsEl.data('lookup-server-upload-enabled'),
|
||||||
});
|
});
|
||||||
|
|
||||||
userSettings.on("sync", function() {
|
userSettings.on("sync", function() {
|
||||||
|
|
Loading…
Reference in New Issue