Show icon-phone when setting is set to private instead of local
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
23148e7682
commit
bffdbb1258
|
@ -231,6 +231,7 @@
|
||||||
_setFieldScopeIcon: function(field, scope) {
|
_setFieldScopeIcon: function(field, scope) {
|
||||||
var $icon = this.$('#' + field + 'form > h3 .icon-federation-menu');
|
var $icon = this.$('#' + field + 'form > h3 .icon-federation-menu');
|
||||||
|
|
||||||
|
$icon.removeClass('icon-phone');
|
||||||
$icon.removeClass('icon-password');
|
$icon.removeClass('icon-password');
|
||||||
$icon.removeClass('icon-contacts-dark');
|
$icon.removeClass('icon-contacts-dark');
|
||||||
$icon.removeClass('icon-link');
|
$icon.removeClass('icon-link');
|
||||||
|
@ -238,6 +239,9 @@
|
||||||
|
|
||||||
switch (scope) {
|
switch (scope) {
|
||||||
case 'v2-private':
|
case 'v2-private':
|
||||||
|
$icon.addClass('icon-phone');
|
||||||
|
$icon.removeClass('hidden');
|
||||||
|
break;
|
||||||
case 'v2-local':
|
case 'v2-local':
|
||||||
$icon.addClass('icon-password');
|
$icon.addClass('icon-password');
|
||||||
$icon.removeClass('hidden');
|
$icon.removeClass('hidden');
|
||||||
|
|
Loading…
Reference in New Issue