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/constants | |
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/constants')
-rw-r--r-- | apps/settings/src/constants/AccountPropertyConstants.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/apps/settings/src/constants/AccountPropertyConstants.js b/apps/settings/src/constants/AccountPropertyConstants.js index ea8aa76703d..285e32ea92f 100644 --- a/apps/settings/src/constants/AccountPropertyConstants.js +++ b/apps/settings/src/constants/AccountPropertyConstants.js @@ -122,6 +122,14 @@ export const PROPERTY_READABLE_SUPPORTED_SCOPES_ENUM = Object.freeze({ [ACCOUNT_PROPERTY_READABLE_ENUM.WEBSITE]: [SCOPE_ENUM.LOCAL, SCOPE_ENUM.PRIVATE], }) +/** List of readable account properties which aren't published to the lookup server */ +export const UNPUBLISHED_READABLE_PROPERTIES = Object.freeze([ + ACCOUNT_PROPERTY_READABLE_ENUM.BIOGRAPHY, + ACCOUNT_PROPERTY_READABLE_ENUM.HEADLINE, + ACCOUNT_PROPERTY_READABLE_ENUM.ORGANISATION, + ACCOUNT_PROPERTY_READABLE_ENUM.ROLE, +]) + /** Scope suffix */ export const SCOPE_SUFFIX = 'Scope' @@ -135,7 +143,7 @@ export const SCOPE_PROPERTY_ENUM = Object.freeze({ name: SCOPE_ENUM.PRIVATE, displayName: t('settings', 'Private'), tooltip: t('settings', 'Only visible to people matched via phone number integration through Talk on mobile'), - tooltipDisabled: t('settings', 'Unavailable as this property is required for core functionality including file sharing and calendar invitations\n\nOnly visible to people matched via phone number integration through Talk on mobile'), + tooltipDisabled: t('settings', 'Not available as this property is required for core functionality including file sharing and calendar invitations'), iconClass: 'icon-phone', }, [SCOPE_ENUM.LOCAL]: { @@ -149,14 +157,14 @@ export const SCOPE_PROPERTY_ENUM = Object.freeze({ name: SCOPE_ENUM.FEDERATED, displayName: t('settings', 'Federated'), tooltip: t('settings', 'Only synchronize to trusted servers'), - tooltipDisabled: t('settings', 'Unavailable as publishing user specific data to the lookup server is not allowed, contact your system administrator if you have any questions\n\nOnly synchronize to trusted servers'), + tooltipDisabled: t('settings', 'Not available as publishing user specific data to the lookup server is not allowed, contact your system administrator if you have any questions'), iconClass: 'icon-contacts-dark', }, [SCOPE_ENUM.PUBLISHED]: { name: SCOPE_ENUM.PUBLISHED, displayName: t('settings', 'Published'), tooltip: t('settings', 'Synchronize to trusted servers and the global and public address book'), - tooltipDisabled: t('settings', 'Unavailable as publishing user specific data to the lookup server is not allowed, contact your system administrator if you have any questions\n\nSynchronize to trusted servers and the global and public address book'), + tooltipDisabled: t('settings', 'Not available as publishing user specific data to the lookup server is not allowed, contact your system administrator if you have any questions'), iconClass: 'icon-link', }, }) |