Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

refactor

Andras Bacsai3e0821e47142
diff --git a/app/Livewire/Project/Service/Storage.php b/app/Livewire/Project/Service/Storage.php
index beccb26771..4b64a8b5ef 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 5680c94b3d..96590cada5 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 @@
</x-modal-confirmation>
@endif
<x-modal-confirmation isErrorButton buttonTitle="Delete">
- <div class="px-2">This resource will be deleted. It is not reversible. <strong
- class="text-error">Please think
+ <div class="px-2">This storage will be deleted. It is not reversible. <strong
+ class="text-error">Please
+ think
again.</strong><br><br></div>
<h4>Actions</h4>
@if ($fileStorage->is_directory)