mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 06:56:52 +01:00 
			
		
		
		
	Deselect records for ListFiles DeleteAction (#1411)
				
					
				
			This commit is contained in:
		
							parent
							
								
									520cea7f09
								
							
						
					
					
						commit
						84c351d0ae
					
				| @ -316,6 +316,7 @@ class ListFiles extends ListRecords | ||||
|                     ->requiresConfirmation() | ||||
|                     ->modalHeading(fn (File $file) => trans('filament-actions::delete.single.modal.heading', ['label' => $file->name . ' ' . ($file->is_directory ? 'folder' : 'file')])) | ||||
|                     ->action(function (File $file) { | ||||
|                         $this->deselectAllTableRecords(); | ||||
|                         $this->getDaemonFileRepository()->deleteFiles($this->path, [$file->name]); | ||||
| 
 | ||||
|                         Activity::event('server:file.delete') | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 MartinOscar
						MartinOscar