From 35494703f32bb011e66e2a896b36a185b17e10c2 Mon Sep 17 00:00:00 2001 From: Andreas Jacobsen Date: Mon, 24 Jul 2017 10:14:57 +0200 Subject: [PATCH] Fixed bug with sharing-settings Signed-off-by: Andreas Jacobsen --- settings/css/settings.css | 1 - settings/js/federationsettingsview.js | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/settings/css/settings.css b/settings/css/settings.css index f99aa57be2..3dd2d9baba 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -194,7 +194,6 @@ input#pass1, input#pass2, input#passwordbutton { .personal-settings-container > div h2 span[class^="icon-"], #personal-settings-avatar-container h2 span[class^="icon-"] { - display: inline-block; padding: 8px; margin-left: -8px; margin-bottom: -10px; diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js index 1a0a3dcb4d..d5537d1940 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; } }