From 3e0821e47142d1ab0b13b737c40d98169e8a46d6 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 5 Aug 2024 20:07:08 +0200 Subject: [PATCH] refactor --- app/Livewire/Project/Service/Storage.php | 3 ++- .../views/livewire/project/service/file-storage.blade.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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)