Skip to content

Commit

Permalink
Make wire:key naming convention consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed May 20, 2024
1 parent 5cb4af7 commit 0d89a2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ class="mb-2"
<span
x-show="! areAllCheckboxesChecked"
x-on:click="toggleAllCheckboxes()"
wire:key="{{ $this->getId() }}.{{ $statePath }}.{{ $field::class }}.actions.select_all"
wire:key="{{ $this->getId() }}.{{ $statePath }}.{{ $field::class }}.actions.select-all"
>
{{ $getAction('selectAll') }}
</span>

<span
x-show="areAllCheckboxesChecked"
x-on:click="toggleAllCheckboxes()"
wire:key="{{ $this->getId() }}.{{ $statePath }}.{{ $field::class }}.actions.deselect_all"
wire:key="{{ $this->getId() }}.{{ $statePath }}.{{ $field::class }}.actions.deselect-all"
>
{{ $getAction('deselectAll') }}
</span>
Expand Down
6 changes: 3 additions & 3 deletions packages/tables/resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class="flex items-center gap-4 gap-x-6 bg-gray-50 px-4 dark:bg-white/5 sm:px-6"
@if ($isSelectionEnabled && (! $isReordering))
<x-filament-tables::selection.checkbox
{{-- Make sure the "checked" state gets re-evaluated after a Livewire request: --}}
:wire:key="$this->getId() . '.table.bulk_select_page.checkbox.' . Str::random()"
:wire:key="$this->getId() . '.table.bulk-select-page.checkbox.' . Str::random()"
:label="__('filament-tables::table.fields.bulk_select_page.label')"
x-bind:checked="
const recordsOnPage = getRecordsOnPage()
Expand Down Expand Up @@ -782,7 +782,7 @@ class="text-sm font-semibold text-gray-950 dark:text-white"
<x-filament-tables::selection.cell tag="th">
<x-filament-tables::selection.checkbox
{{-- Make sure the "checked" state gets re-evaluated after a Livewire request: --}}
:wire:key="$this->getId() . '.table.bulk_select_page.checkbox.' . Str::random()"
:wire:key="$this->getId() . '.table.bulk-select-page.checkbox.' . Str::random()"
:label="__('filament-tables::table.fields.bulk_select_page.label')"
x-bind:checked="
const recordsOnPage = getRecordsOnPage()
Expand Down Expand Up @@ -859,7 +859,7 @@ class="text-sm font-semibold text-gray-950 dark:text-white"
<x-filament-tables::selection.cell tag="th">
<x-filament-tables::selection.checkbox
{{-- Make sure the "checked" state gets re-evaluated after a Livewire request: --}}
:wire:key="$this->getId() . '.table.bulk_select_page.checkbox.' . Str::random()"
:wire:key="$this->getId() . '.table.bulk-select-page.checkbox.' . Str::random()"
:label="__('filament-tables::table.fields.bulk_select_page.label')"
x-bind:checked="
const recordsOnPage = getRecordsOnPage()
Expand Down

0 comments on commit 0d89a2c

Please sign in to comment.