diff options
author | Christopher Ng <chrng8@gmail.com> | 2021-11-04 23:04:01 +0000 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2021-11-04 23:13:43 +0000 |
commit | 5b3a114cc5d5c63336b78eca4a6f00f0d17521ec (patch) | |
tree | f2b248e30f72c527e91f3d10b342e41b0871efe3 /apps/settings/src/components/PersonalInfo | |
parent | e1c2c13585d5417db2ed490b2986c1ea04cd808d (diff) | |
download | nextcloud-server-5b3a114cc5d5c63336b78eca4a6f00f0d17521ec.tar.gz nextcloud-server-5b3a114cc5d5c63336b78eca4a6f00f0d17521ec.zip |
Fix unsupported scopes being enabled for new properties
- Shorten disabled scope messages
- Update wording
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/settings/src/components/PersonalInfo')
-rw-r--r-- | apps/settings/src/components/PersonalInfo/shared/FederationControl.vue | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/settings/src/components/PersonalInfo/shared/FederationControl.vue b/apps/settings/src/components/PersonalInfo/shared/FederationControl.vue index 76322f5c7db..010cb325e4b 100644 --- a/apps/settings/src/components/PersonalInfo/shared/FederationControl.vue +++ b/apps/settings/src/components/PersonalInfo/shared/FederationControl.vue @@ -46,7 +46,13 @@ import { showError } from '@nextcloud/dialogs' import FederationControlAction from './FederationControlAction' -import { ACCOUNT_PROPERTY_READABLE_ENUM, PROPERTY_READABLE_KEYS_ENUM, PROPERTY_READABLE_SUPPORTED_SCOPES_ENUM, SCOPE_ENUM, SCOPE_PROPERTY_ENUM } from '../../../constants/AccountPropertyConstants' +import { + ACCOUNT_PROPERTY_READABLE_ENUM, + PROPERTY_READABLE_KEYS_ENUM, + PROPERTY_READABLE_SUPPORTED_SCOPES_ENUM, + SCOPE_ENUM, SCOPE_PROPERTY_ENUM, + UNPUBLISHED_READABLE_PROPERTIES, +} from '../../../constants/AccountPropertyConstants' import { savePrimaryAccountPropertyScope } from '../../../service/PersonalInfo/PersonalInfoService' const { lookupServerUploadEnabled } = loadState('settings', 'accountParameters', {}) @@ -108,7 +114,7 @@ export default { }, supportedScopes() { - if (lookupServerUploadEnabled) { + if (lookupServerUploadEnabled && !UNPUBLISHED_READABLE_PROPERTIES.includes(this.accountProperty)) { return [ ...PROPERTY_READABLE_SUPPORTED_SCOPES_ENUM[this.accountProperty], SCOPE_ENUM.FEDERATED, |