summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/federationsettingsview.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js
index d58098257bd..46d92027a97 100644
--- a/settings/js/federationsettingsview.js
+++ b/settings/js/federationsettingsview.js
@@ -180,18 +180,24 @@
_setFieldScopeIcon: function(field, scope) {
var $icon = this.$('#' + field + 'form > h2 > span');
+
$icon.removeClass('icon-password');
$icon.removeClass('icon-contacts');
$icon.removeClass('icon-link');
+ $icon.addClass('hidden');
+
switch (scope) {
case 'private':
$icon.addClass('icon-password');
+ $icon.removeClass('hidden');
break;
case 'contacts':
$icon.addClass('icon-contacts');
+ $icon.removeClass('hidden');
break;
case 'public':
$icon.addClass('icon-link');
+ $icon.removeClass('hidden');
break;
}
}