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