Fixed bug with sharing-settings

Signed-off-by: Andreas Jacobsen <andreasjacobsen93@gmail.com>
This commit is contained in:
Andreas Jacobsen 2017-07-24 10:14:57 +02:00
parent 84eb18b011
commit 35494703f3
2 changed files with 6 additions and 1 deletions

View file

@ -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;

View file

@ -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;
}
}