Fix radio Filament: recordActions->actions, toolbarActions->headerActions, EmbedCode statePath

This commit is contained in:
root
2026-06-04 20:59:40 +02:00
parent 4d8d22f40a
commit be6a578f5e
10 changed files with 16 additions and 15 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ final class ApiKeys extends Page implements HasTable
->label('Aangemaakt') ->label('Aangemaakt')
->dateTime('d-m-Y H:i'), ->dateTime('d-m-Y H:i'),
]) ])
->recordActions(function ($record) { ->actions(function ($record) {
return [ return [
ActionGroup::make([ ActionGroup::make([
Action::make('toggle') Action::make('toggle')
@@ -98,7 +98,7 @@ final class ApiKeys extends Page implements HasTable
]), ]),
]; ];
}) })
->toolbarActions([ ->headerActions([
Action::make('create') Action::make('create')
->label('Nieuwe API Sleutel') ->label('Nieuwe API Sleutel')
->icon('heroicon-o-plus') ->icon('heroicon-o-plus')
+2 -2
View File
@@ -74,7 +74,7 @@ final class AutoDjPlaylist extends Page implements HasTable
->trueColor('success') ->trueColor('success')
->falseColor('danger'), ->falseColor('danger'),
]) ])
->recordActions(function ($record) { ->actions(function ($record) {
return [ return [
ActionGroup::make([ ActionGroup::make([
Action::make('toggle_active') Action::make('toggle_active')
@@ -98,7 +98,7 @@ final class AutoDjPlaylist extends Page implements HasTable
]), ]),
]; ];
}) })
->toolbarActions([ ->headerActions([
Action::make('create') Action::make('create')
->label('Track Toevoegen') ->label('Track Toevoegen')
->icon('heroicon-o-plus') ->icon('heroicon-o-plus')
+1
View File
@@ -50,6 +50,7 @@ final class EmbedCode extends Page implements HasForms
public function form(Schema $schema): Schema public function form(Schema $schema): Schema
{ {
return $schema return $schema
->statePath('data')
->components([ ->components([
Section::make('Embed Configuratie') Section::make('Embed Configuratie')
->description('Pas het uiterlijk van de embed player aan') ->description('Pas het uiterlijk van de embed player aan')
@@ -180,7 +180,7 @@ class RadioApplicationResource extends Resource
]) ])
->label('Status'), ->label('Status'),
]) ])
->recordActions([ ->actions([
Action::make('approve') Action::make('approve')
->label('Goedkeuren') ->label('Goedkeuren')
->icon('heroicon-o-check-circle') ->icon('heroicon-o-check-circle')
@@ -123,11 +123,11 @@ class RadioBannerResource extends Resource
->label('Actief') ->label('Actief')
->boolean(), ->boolean(),
]) ])
->recordActions([ ->actions([
EditAction::make(), EditAction::make(),
DeleteAction::make(), DeleteAction::make(),
]) ])
->toolbarActions([ ->headerActions([
DeleteBulkAction::make(), DeleteBulkAction::make(),
]); ]);
} }
@@ -115,11 +115,11 @@ class RadioHistoryResource extends Resource
TextColumn::make('listeners_count') TextColumn::make('listeners_count')
->label('Luisteraars'), ->label('Luisteraars'),
]) ])
->recordActions([ ->actions([
EditAction::make(), EditAction::make(),
DeleteAction::make(), DeleteAction::make(),
]) ])
->toolbarActions([ ->headerActions([
DeleteBulkAction::make(), DeleteBulkAction::make(),
]); ]);
} }
@@ -120,10 +120,10 @@ class RadioRankResource extends Resource
->filters([ ->filters([
// //
]) ])
->recordActions([ ->actions([
EditAction::make(), EditAction::make(),
]) ])
->toolbarActions([ ->headerActions([
DeleteBulkAction::make(), DeleteBulkAction::make(),
]); ]);
} }
@@ -142,11 +142,11 @@ class RadioScheduleResource extends Resource
]) ])
->label('Dag'), ->label('Dag'),
]) ])
->recordActions([ ->actions([
EditAction::make(), EditAction::make(),
DeleteAction::make(), DeleteAction::make(),
]) ])
->toolbarActions([ ->headerActions([
DeleteBulkAction::make(), DeleteBulkAction::make(),
]); ]);
} }
@@ -102,7 +102,7 @@ class RadioShoutResource extends Resource
->filters([ ->filters([
// //
]) ])
->recordActions([ ->actions([
Action::make('report') Action::make('report')
->label('Melden') ->label('Melden')
->icon('heroicon-o-flag') ->icon('heroicon-o-flag')
@@ -76,7 +76,7 @@ class RadioSongPlayResource extends Resource
->options(fn () => RadioSongPlay::distinct()->whereNotNull('artist')->pluck('artist', 'artist')->toArray()) ->options(fn () => RadioSongPlay::distinct()->whereNotNull('artist')->pluck('artist', 'artist')->toArray())
->searchable(), ->searchable(),
]) ])
->recordActions([ ->actions([
DeleteAction::make() DeleteAction::make()
->label('Verwijderen'), ->label('Verwijderen'),
]) ])