This commit is contained in:
Andras Bacsai
2024-08-05 20:07:08 +02:00
parent ea5101c814
commit 3e0821e471
2 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ class Storage extends Component
return [ return [
"echo-private:team.{$teamId},FileStorageChanged" => 'refreshStoragesFromEvent', "echo-private:team.{$teamId},FileStorageChanged" => 'refreshStoragesFromEvent',
'refreshStorages' => '$refresh', 'refreshStorages',
'addNewVolume', 'addNewVolume',
]; ];
} }
@@ -36,6 +36,7 @@ class Storage extends Component
public function refreshStorages() public function refreshStorages()
{ {
$this->fileStorage = $this->resource->fileStorages()->get(); $this->fileStorage = $this->resource->fileStorages()->get();
$this->dispatch('$refresh');
} }
public function addNewVolume($data) public function addNewVolume($data)

View File

@@ -27,8 +27,9 @@
</x-modal-confirmation> </x-modal-confirmation>
@endif @endif
<x-modal-confirmation isErrorButton buttonTitle="Delete"> <x-modal-confirmation isErrorButton buttonTitle="Delete">
<div class="px-2">This resource will be deleted. It is not reversible. <strong <div class="px-2">This storage will be deleted. It is not reversible. <strong
class="text-error">Please think class="text-error">Please
think
again.</strong><br><br></div> again.</strong><br><br></div>
<h4>Actions</h4> <h4>Actions</h4>
@if ($fileStorage->is_directory) @if ($fileStorage->is_directory)