From 0089e86dd1caac4875864c074a1a62d22da90a08 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 15 Jul 2024 12:23:06 +0200 Subject: [PATCH] refactor: Remove unused code and fix storage form layout --- app/Livewire/Project/Shared/Storages/Show.php | 8 -------- .../livewire/project/shared/storages/show.blade.php | 12 +++++++----- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/app/Livewire/Project/Shared/Storages/Show.php b/app/Livewire/Project/Shared/Storages/Show.php index 52b52ef6d..b64cbfa11 100644 --- a/app/Livewire/Project/Shared/Storages/Show.php +++ b/app/Livewire/Project/Shared/Storages/Show.php @@ -4,7 +4,6 @@ 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 6b429a535..d6ee66ab7 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 @@ + @else + + + Update + @endif - - - Update - @else