diff --git a/app/Livewire/Project/Shared/Storages/Show.php b/app/Livewire/Project/Shared/Storages/Show.php index 5e35b796a..283930174 100644 --- a/app/Livewire/Project/Shared/Storages/Show.php +++ b/app/Livewire/Project/Shared/Storages/Show.php @@ -12,6 +12,8 @@ class Show extends Component public bool $isReadOnly = false; public ?string $modalId = null; public bool $isFirst = true; + public bool $isService = false; + public ?string $startedAt = null; protected $rules = [ 'storage.name' => 'required|string', diff --git a/resources/views/livewire/project/shared/storages/all.blade.php b/resources/views/livewire/project/shared/storages/all.blade.php index 3647a8b9d..e357b4f94 100644 --- a/resources/views/livewire/project/shared/storages/all.blade.php +++ b/resources/views/livewire/project/shared/storages/all.blade.php @@ -3,10 +3,11 @@ @foreach ($resource->persistentStorages as $storage) @if ($resource->type() === 'service') + :isFirst="$loop->first" isReadOnly='true' isService='true' /> @else + isReadOnly="{{ data_get($storage, 'is_readonly') }}" + startedAt="{{ data_get($resource, 'started_at') }}" /> @endif @endforeach diff --git a/resources/views/livewire/project/shared/storages/show.blade.php b/resources/views/livewire/project/shared/storages/show.blade.php index c5c395993..a0e02c92c 100644 --- a/resources/views/livewire/project/shared/storages/show.blade.php +++ b/resources/views/livewire/project/shared/storages/show.blade.php @@ -4,23 +4,31 @@ @if ($isFirst) - - + @if ($isService || $startedAt) + + @else + + @endif + Update @else - - + + @endif @else @if ($isFirst) - + @else