rest checkboxes on close
This commit is contained in:
parent
76cb473db8
commit
bcfca40f3a
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,7 @@
|
||||||
this.password = '';
|
this.password = '';
|
||||||
this.userConfirmText = '';
|
this.userConfirmText = '';
|
||||||
this.passwordError = '';
|
this.passwordError = '';
|
||||||
|
this.selectedActions = @js(collect($checkboxes)->pluck('id')->all());
|
||||||
},
|
},
|
||||||
step1ButtonText: @js($step1ButtonText),
|
step1ButtonText: @js($step1ButtonText),
|
||||||
step2ButtonText: @js($step2ButtonText),
|
step2ButtonText: @js($step2ButtonText),
|
||||||
|
|
@ -157,6 +158,7 @@
|
||||||
:label="$checkbox['label']"
|
:label="$checkbox['label']"
|
||||||
x-on:change="toggleAction('{{ $checkbox['id'] }}')"
|
x-on:change="toggleAction('{{ $checkbox['id'] }}')"
|
||||||
:checked="true"
|
:checked="true"
|
||||||
|
x-bind:checked="selectedActions.includes('{{ $checkbox['id'] }}')"
|
||||||
></x-forms.checkbox>
|
></x-forms.checkbox>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue