mirror of https://github.com/zulip/zulip.git
settings: Fade label for disabled checkbox.
This commit is contained in:
parent
22a58c739c
commit
28174aecca
|
@ -62,6 +62,11 @@ export function maybe_disable_widgets() {
|
|||
|
||||
$(".organization-box [data-name='organization-profile']").find(".image_upload_button").hide();
|
||||
|
||||
$(".organization-box [data-name='organization-profile']")
|
||||
.find("input[type='checkbox']:disabled")
|
||||
.closest(".input-group")
|
||||
.addClass("control-label-disabled");
|
||||
|
||||
$(".organization-box [data-name='organization-settings']")
|
||||
.find("input, textarea, button, select")
|
||||
.prop("disabled", true);
|
||||
|
@ -71,16 +76,18 @@ export function maybe_disable_widgets() {
|
|||
.hide();
|
||||
|
||||
$(".organization-box [data-name='organization-settings']")
|
||||
.find(".control-label-disabled")
|
||||
.addClass("enabled");
|
||||
.find("input[type='checkbox']:disabled")
|
||||
.closest(".input-group")
|
||||
.addClass("control-label-disabled");
|
||||
|
||||
$(".organization-box [data-name='organization-permissions']")
|
||||
.find("input, textarea, button, select")
|
||||
.prop("disabled", true);
|
||||
|
||||
$(".organization-box [data-name='organization-permissions']")
|
||||
.find(".control-label-disabled")
|
||||
.addClass("enabled");
|
||||
.find("input[type='checkbox']:disabled")
|
||||
.closest(".input-group")
|
||||
.addClass("control-label-disabled");
|
||||
}
|
||||
|
||||
export function get_organization_settings_options() {
|
||||
|
|
|
@ -17,6 +17,11 @@ export function maybe_disable_widgets() {
|
|||
.find("input, select")
|
||||
.prop("disabled", true);
|
||||
|
||||
$(".organization-box [data-name='organization-level-user-defaults']")
|
||||
.find("input[type='checkbox']:disabled")
|
||||
.closest(".input-group")
|
||||
.addClass("control-label-disabled");
|
||||
|
||||
$(".organization-box [data-name='organization-level-user-defaults']")
|
||||
.find(".play_notification_sound")
|
||||
.addClass("control-label-disabled");
|
||||
|
|
Loading…
Reference in New Issue