diff --git a/app/Livewire/Project/Service/Storage.php b/app/Livewire/Project/Service/Storage.php index beccb2677..4b64a8b5e 100644 --- a/app/Livewire/Project/Service/Storage.php +++ b/app/Livewire/Project/Service/Storage.php @@ -17,7 +17,7 @@ class Storage extends Component return [ "echo-private:team.{$teamId},FileStorageChanged" => 'refreshStoragesFromEvent', - 'refreshStorages' => '$refresh', + 'refreshStorages', 'addNewVolume', ]; } @@ -36,6 +36,7 @@ class Storage extends Component public function refreshStorages() { $this->fileStorage = $this->resource->fileStorages()->get(); + $this->dispatch('$refresh'); } public function addNewVolume($data) diff --git a/resources/views/livewire/project/service/file-storage.blade.php b/resources/views/livewire/project/service/file-storage.blade.php index 5680c94b3..96590cada 100644 --- a/resources/views/livewire/project/service/file-storage.blade.php +++ b/resources/views/livewire/project/service/file-storage.blade.php @@ -27,8 +27,9 @@ @endif -
This resource will be deleted. It is not reversible. Please think +
This storage will be deleted. It is not reversible. Please + think again.

Actions

@if ($fileStorage->is_directory)