TableAction::make('edit')
->modalContent(
fn(Variable $variable): View => view(
'livewire.system.system-settings.system-setting-form',
[
'variable' => $variable,
'currentComponent' => static::getVariableComponent($variable)
]
)
)
->slideOver()->action(function (Tables\Actions\Action $action, Component $livewire) {
$livewire->dispatch('saveVariable', $livewire->getId() . '-table-action');
$action->halt();
})
TableAction::make('edit')
->modalContent(
fn(Variable $variable): View => view(
'livewire.system.system-settings.system-setting-form',
[
'variable' => $variable,
'currentComponent' => static::getVariableComponent($variable)
]
)
)
->slideOver()->action(function (Tables\Actions\Action $action, Component $livewire) {
$livewire->dispatch('saveVariable', $livewire->getId() . '-table-action');
$action->halt();
})