Refactor dispatch event names to use snake_case in General.php, FileStorage.php, Storage.php, All.php, and Show.php
This commit is contained in:
@@ -12,7 +12,7 @@ class Storage extends Component
|
||||
{
|
||||
return [
|
||||
'addNewVolume',
|
||||
'storagesChanged'=> '$refresh'
|
||||
'refresh_storages' => '$refresh',
|
||||
];
|
||||
}
|
||||
public function addNewVolume($data)
|
||||
@@ -28,7 +28,7 @@ class Storage extends Component
|
||||
$this->resource->refresh();
|
||||
$this->dispatch('success', 'Storage added successfully');
|
||||
$this->dispatch('clearAddStorage');
|
||||
$this->dispatch('refreshStorages');
|
||||
$this->dispatch('refresh_storages');
|
||||
} catch (\Throwable $e) {
|
||||
return handleError($e, $this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user