mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-28 14:51:08 +02:00
Deselect records for ListFiles
DeleteAction
This commit is contained in:
parent
35ce1d34ab
commit
5e4837ffb6
@ -317,6 +317,7 @@ class ListFiles extends ListRecords
|
|||||||
->modalDescription(fn (File $file) => $file->name)
|
->modalDescription(fn (File $file) => $file->name)
|
||||||
->modalHeading('Delete file?')
|
->modalHeading('Delete file?')
|
||||||
->action(function (File $file) {
|
->action(function (File $file) {
|
||||||
|
$this->deselectAllTableRecords();
|
||||||
$this->getDaemonFileRepository()->deleteFiles($this->path, [$file->name]);
|
$this->getDaemonFileRepository()->deleteFiles($this->path, [$file->name]);
|
||||||
|
|
||||||
Activity::event('server:file.delete')
|
Activity::event('server:file.delete')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user