mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 20:14:46 +02:00
Use translation for ListFiles
DeleteAction
This commit is contained in:
parent
35ce1d34ab
commit
e21a772bee
@ -314,8 +314,7 @@ class ListFiles extends ListRecords
|
||||
->label('')
|
||||
->icon('tabler-trash')
|
||||
->requiresConfirmation()
|
||||
->modalDescription(fn (File $file) => $file->name)
|
||||
->modalHeading('Delete file?')
|
||||
->modalHeading(fn (File $file) => trans('filament-actions::delete.single.modal.heading', ['label' => $file->name . ' ' . ($file->is_directory ? 'folder' : 'file')]))
|
||||
->action(function (File $file) {
|
||||
$this->getDaemonFileRepository()->deleteFiles($this->path, [$file->name]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user