Skip to content

Commit 44d5484

Browse files
committed
bookmark
1 parent 4755fe0 commit 44d5484

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/Livewire/CategoryEditForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function render()
3232
return view('livewire.category-edit-form');
3333
}
3434

35-
public function updated($property, $value)
35+
public function updated($property, $value) //this is what's throwing us off i think. not quite sure what this is doing.
3636
{
3737
if (! in_array($property, ['eulaText', 'useDefaultEula'])) {
3838
return;

resources/views/livewire/category-edit-form.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
type="checkbox"
3636
name="use_default_eula"
3737
value="0"
38-
wire:model.live="shouldUncheckDefaultEulaBox"
38+
wire:="shouldUncheckDefaultEulaBox"
3939
aria-label="use_default_eula"
4040
/>
4141
<span>{!! trans('admin/categories/general.use_default_eula_disabled') !!}</span>
4242
</label>
4343
@else
44+
{{--so if we delete the eula text, then it will skip the one above, and then get to this.
45+
Putting us back where we started--}}
4446
<label class="form-control form-control--disabled">
4547
<input
4648
type="checkbox"

0 commit comments

Comments
 (0)