aboutsummaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorAndreas Jacobsen <anjac@itu.dk>2017-07-24 10:14:57 +0200
committerAndreas Jacobsen <anjac@itu.dk>2017-07-24 10:14:57 +0200
commit35494703f32bb011e66e2a896b36a185b17e10c2 (patch)
tree8950d3bdbe82c837f7728e9ff2a34fffd3411c70 /settings/js
parent84eb18b01172014919f6a257fd9323fb5cfcc59b (diff)
downloadnextcloud-server-35494703f32bb011e66e2a896b36a185b17e10c2.tar.gz
nextcloud-server-35494703f32bb011e66e2a896b36a185b17e10c2.zip
Fixed bug with sharing-settings
Signed-off-by: Andreas Jacobsen <andreasjacobsen93@gmail.com>
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 1a0a3dcb4d1..d5537d19404 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-dark');
$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-dark');
+ $icon.removeClass('hidden');
break;
case 'public':
$icon.addClass('icon-link');
+ $icon.removeClass('hidden');
break;
}
}