Skip to content

Commit

Permalink
Merge pull request #26459 from nextcloud/backport/26458/stable21
Browse files Browse the repository at this point in the history
[stable21] Show icon-phone when setting is set to private instead of local
  • Loading branch information
nickvergessen authored Apr 8, 2021
2 parents 591aac3 + bffdbb1 commit ae8b0ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/settings/js/federationsettingsview.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,17 @@
_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');
$icon.addClass('hidden');

switch (scope) {
case 'v2-private':
$icon.addClass('icon-phone');
$icon.removeClass('hidden');
break;
case 'v2-local':
$icon.addClass('icon-password');
$icon.removeClass('hidden');
Expand Down

0 comments on commit ae8b0ff

Please sign in to comment.