mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: allow wizard checkbox field to be disabled (#17916)
* FEATURE: allow wizard checkbox field to be disabled * Changes per review feedback
This commit is contained in:
@@ -7,6 +7,7 @@ export default Component.extend({
|
||||
":wizard-container__field",
|
||||
"typeClasses",
|
||||
"field.invalid",
|
||||
"field.disabled",
|
||||
],
|
||||
|
||||
@discourseComputed("field.type", "field.id")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<label class="wizard-container__label">
|
||||
<Input @type="checkbox" class="wizard-container__checkbox" @checked={{this.field.value}} />
|
||||
<Input @type="checkbox" disabled={{this.field.disabled}} class="wizard-container__checkbox" @checked={{this.field.value}} />
|
||||
<span class="wizard-container__checkbox-slider"></span>
|
||||
{{#if this.field.icon}}
|
||||
{{d-icon this.field.icon}}
|
||||
|
||||
Reference in New Issue
Block a user