Merge pull request #26458 from nextcloud/bugfix/noid/show-phone-icon-when-setting-is-on-private

Show icon-phone when setting is set to private instead of local
This commit is contained in:
Joas Schilling 2021-04-08 13:03:22 +02:00 committed by GitHub
commit ba5c99729f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -231,6 +231,7 @@
_setFieldScopeIcon: function(field, scope) {
var $icon = this.$('#' + field + 'form > h3 .icon-federation-menu');
$icon.removeClass('icon-phone');
$icon.removeClass('icon-password');
$icon.removeClass('icon-contacts-dark');
$icon.removeClass('icon-link');
@ -238,6 +239,9 @@
switch (scope) {
case 'v2-private':
$icon.addClass('icon-phone');
$icon.removeClass('hidden');
break;
case 'v2-local':
$icon.addClass('icon-password');
$icon.removeClass('hidden');