Skip to content

Commit 0089e86

Browse files
committed
refactor: Remove unused code and fix storage form layout
1 parent e1d802b commit 0089e86

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

app/Livewire/Project/Shared/Storages/Show.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@
44

55
use App\Models\LocalPersistentVolume;
66
use Livewire\Component;
7-
use Visus\Cuid2\Cuid2;
87

98
class Show extends Component
109
{
1110
public LocalPersistentVolume $storage;
1211

1312
public bool $isReadOnly = false;
1413

15-
public ?string $modalId = null;
16-
1714
public bool $isFirst = true;
1815

1916
public bool $isService = false;
@@ -32,11 +29,6 @@ class Show extends Component
3229
'host_path' => 'host',
3330
];
3431

35-
public function mount()
36-
{
37-
$this->modalId = new Cuid2(7);
38-
}
39-
4032
public function submit()
4133
{
4234
$this->validate();

resources/views/livewire/project/shared/storages/show.blade.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@
1515
<x-forms.input id="storage.host_path" readonly helper="Directory on the host system."
1616
label="Source Path"
1717
helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
18+
<x-forms.input id="storage.mount_path" label="Destination Path"
19+
helper="Directory inside the container." required readonly />
1820
@else
1921
<x-forms.input id="storage.host_path" helper="Directory on the host system." label="Source Path"
2022
helper="Warning: Changing the source path after the initial start could cause problems. Only use it when you know what are you doing." />
23+
<x-forms.input id="storage.mount_path" label="Destination Path"
24+
helper="Directory inside the container." required readonly />
25+
<x-forms.button type="submit">
26+
Update
27+
</x-forms.button>
2128
@endif
22-
<x-forms.input id="storage.mount_path" label="Destination Path" helper="Directory inside the container."
23-
required readonly />
24-
<x-forms.button type="submit">
25-
Update
26-
</x-forms.button>
2729
@else
2830
<x-forms.input id="storage.name" required readonly />
2931
<x-forms.input id="storage.host_path" readonly />

0 commit comments

Comments
 (0)