refactor
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user