Skip to content

Commit 1d35c8c

Browse files
committed
Bugfix: update message of content history livewier
1 parent a5baafe commit 1d35c8c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Filament/Actions/ContentHistoryAction.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@ protected function setUp(): void
7878

7979
return ! isset($arguments['itemKey']);
8080
})
81-
->label(fn ($arguments) => ($arguments['avoidToClear'] ?? false) ? 'Avoid to clean' : 'Wait to clean')
81+
->label(fn ($arguments) => ($arguments['avoidToClear'] ?? false) ? 'Wait to clean' : 'Avoid to clean')
8282
->color(fn ($arguments) => ($arguments['avoidToClear'] ?? false) ? 'gray' : 'danger')
8383
->outlined()
84-
->successNotificationTitle(fn ($arguments) => ($arguments['avoidToClear'] ?? false) ? 'Now avoiding to clean' : 'Now waiting to clean')
8584
->successNotification(
86-
fn (Notification $notification) => $notification
85+
fn (Notification $notification, $arguments) => $notification
8786
->icon(FilamentIcon::resolve('inspirecms::warn'))
88-
->color('warning')
89-
->iconColor('warning')
87+
->title(($arguments['avoidToClear'] ?? false) ? 'Now waiting to clean': 'Now avoiding to clean')
88+
->status(($arguments['avoidToClear'] ?? false) ? 'info' : 'warning')
9089
)
9190
->action(function (array $arguments, Action $action, Model | Content $record) {
9291
if (! isset($arguments['itemKey'])) {

0 commit comments

Comments
 (0)