settings: Fade label for disabled checkbox.

This commit is contained in:
Sahil Batra 2024-06-26 13:36:58 +05:30 committed by Tim Abbott
parent 22a58c739c
commit 28174aecca
2 changed files with 16 additions and 4 deletions

View File

@ -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() {

View File

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