File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
resources/views/components/tools/toolbar/items Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ All notable changes to `laravel-livewire-tables` will be documented in this file
11
11
- Add Placeholder config option for DateFilter, DateTimeFilter, NumberFilter
12
12
- Clean up classes on filters
13
13
- Minor tweaks to toolbar/column select styling
14
+ - Fix wire: confirm for BulkActions (removed in merge error)
14
15
15
16
## [ 3.0.0-beta.10] - 2023-10-27
16
17
- Changes to toolbar blade structure by @lrljoe in #[ 1454] ( https://github.com/rappasoft/laravel-livewire-tables/pull/1454 )
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ class="origin-top-right absolute right-0 mt-2 w-full md:w-48 rounded-md shadow-l
52
52
@foreach ($component -> getBulkActions () as $action => $title )
53
53
<button
54
54
wire:click =" {{ $action } }"
55
+ @if ($component -> hasConfirmationMessage ($action ) )
56
+ wire:confirm =" {{ $component -> getBulkActionConfirmMessage ($action ) } }"
57
+ @endif
55
58
wire:key =" {{ $tableName } } -bulk-action-{{ $action } }"
56
59
type =" button"
57
60
class =" block w-full px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900 flex items-center space-x-2 dark:text-white dark:hover:bg-gray-600"
@@ -74,6 +77,9 @@ class="block w-full px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100
74
77
@foreach ($component -> getBulkActions () as $action => $title )
75
78
<a
76
79
href =" #"
80
+ @if ($component -> hasConfirmationMessage ($action ) )
81
+ wire:confirm =" {{ $component -> getBulkActionConfirmMessage ($action ) } }"
82
+ @endif
77
83
wire:click =" {{ $action } }"
78
84
wire:key =" {{ $tableName } } -bulk-action-{{ $action } }"
79
85
@class ([
You can’t perform that action at this time.
0 commit comments