forked from External/greenlight
Added disabled styling to always enabled settings
This commit is contained in:
parent
63b6bb7407
commit
1d88f54b44
|
@ -109,3 +109,7 @@
|
|||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
.enabled-setting {
|
||||
background: lightgray;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
<% mute = room_configuration("Room Configuration Mute On Join") %>
|
||||
<% if mute != "disabled" %>
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block">
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block <%= "enabled-setting" if mute == "enabled" %>">
|
||||
<span class="custom-switch-description"><%= t("modal.room_settings.mute")%></span>
|
||||
<%= f.check_box :mute_on_join, class: "custom-switch-input", data: { default: mute == "enabled" }, checked: false %>
|
||||
<span class="custom-switch-indicator float-right cursor-pointer"></span>
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
<% require_approval = room_configuration("Room Configuration Require Moderator") %>
|
||||
<% if require_approval != "disabled" %>
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block">
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block <%= "enabled-setting" if require_approval == "enabled" %>">
|
||||
<span class="custom-switch-description"><%= t("modal.room_settings.require_approval")%></span>
|
||||
<%= f.check_box :require_moderator_approval, class: "custom-switch-input", data: { default: require_approval == "enabled" }, checked: false %>
|
||||
<span class="custom-switch-indicator float-right cursor-pointer"></span>
|
||||
|
@ -63,7 +63,7 @@
|
|||
|
||||
<% any_start = room_configuration("Room Configuration Allow Any Start") %>
|
||||
<% if any_start != "disabled" %>
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block">
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block <%= "enabled-setting" if any_start == "enabled" %>">
|
||||
<span class="custom-switch-description"><%= t("modal.room_settings.start")%></span>
|
||||
<%= f.check_box :anyone_can_start, class: "custom-switch-input", data: { default: any_start == "enabled" }, checked: false %>
|
||||
<span class="custom-switch-indicator float-right cursor-pointer"></span>
|
||||
|
@ -72,7 +72,7 @@
|
|||
|
||||
<% moderator = room_configuration("Room Configuration All Join Moderator") %>
|
||||
<% if moderator != "disabled" %>
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block">
|
||||
<label class="custom-switch pl-0 mt-3 mb-3 w-100 text-left d-inline-block <%= "enabled-setting" if moderator == "enabled" %>">
|
||||
<span class="custom-switch-description"><%= t("modal.room_settings.join_moderator")%></span>
|
||||
<%= f.check_box :all_join_moderator, class: "custom-switch-input", data: { default: moderator == "enabled" }, checked: false %>
|
||||
<span class="custom-switch-indicator float-right cursor-pointer"></span>
|
||||
|
|
Loading…
Reference in New Issue