]> source.dussan.org Git - nextcloud-server.git/commit
Fix active scope not visible in the menu if excluded 26724/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 1 Feb 2021 02:34:36 +0000 (03:34 +0100)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Fri, 2 Jul 2021 12:27:23 +0000 (14:27 +0200)
commit43a98794676e4fcb77aebd1447a2ab8af759417f
treed14301445464f1bdf635bddb32e9ce55ed491a48
parent3ae1ec4d2a4f10f8cc54c4fc933ef1fe9ea9ff25
Fix active scope not visible in the menu if excluded

Depending on some settings (for example, if lookup server upload is
disabled) some items can be hidden in the scope menu. However, if the
user selected an scope in the past once the settings were changed the
scope was no longer visible in the menu. Now the active scope will be
always visible in the menu, although if it is an excluded scope it will
be disabled. Selecting any other scope will then hide the excluded and
no longer active one.

When upload to the lookup server is disabled the scope menu was hidden
for display name and email in the personal information settings; now the
menu will be always shown to enable the above described behaviour.

Note that the menu will be shown even if there is a single available
scope so the user can read its description.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/settings/css/settings.scss
apps/settings/js/federationscopemenu.js
apps/settings/js/templates.js
apps/settings/js/templates/federationscopemenu.handlebars
apps/settings/templates/settings/personal/personal.info.php