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: Remove unused code and fix storage form layout

Andras Bacsai0089e86dd1ca
diff --git a/app/Livewire/Project/Shared/Storages/Show.php b/app/Livewire/Project/Shared/Storages/Show.php
index 52b52ef6d3..b64cbfa117 100644
--- a/app/Livewire/Project/Shared/Storages/Show.php
+++ b/app/Livewire/Project/Shared/Storages/Show.php
@@ -4,7 +4,6 @@ namespace App\Livewire\Project\Shared\Storages;
use App\Models\LocalPersistentVolume;
use Livewire\Component;
-use Visus\Cuid2\Cuid2;
class Show extends Component
{
@@ -12,8 +11,6 @@ class Show extends Component
public bool $isReadOnly = false;
- public ?string $modalId = null;
-
public bool $isFirst = true;
public bool $isService = false;
@@ -32,11 +29,6 @@ class Show extends Component
'host_path' => 'host',
];
- public function mount()
- {
- $this->modalId = new Cuid2(7);
- }
-
public function submit()
{
$this->validate();
diff --git a/resources/views/livewire/project/shared/storages/show.blade.php b/resources/views/livewire/project/shared/storages/show.blade.php
index 6b429a535c..d6ee66ab75 100644
--- a/resources/views/livewire/project/shared/storages/show.blade.php
+++ b/resources/views/livewire/project/shared/storages/show.blade.php
@@ -15,15 +15,17 @@
<x-forms.input id="storage.host_path" readonly helper="Directory on the host system."
label="Source Path"
helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
+ <x-forms.input id="storage.mount_path" label="Destination Path"
+ helper="Directory inside the container." required readonly />
@else
<x-forms.input id="storage.host_path" helper="Directory on the host system." label="Source Path"
helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
+ <x-forms.input id="storage.mount_path" label="Destination Path"
+ helper="Directory inside the container." required readonly />
+ <x-forms.button type="submit">
+ Update
+ </x-forms.button>
@endif
- <x-forms.input id="storage.mount_path" label="Destination Path" helper="Directory inside the container."
- required readonly />
- <x-forms.button type="submit">
- Update
- </x-forms.button>
@else
<x-forms.input id="storage.name" required readonly />
<x-forms.input id="storage.host_path" readonly />