- Add isServiceResource() and shouldBeReadOnlyInUI() to LocalFileVolume - Update path matching to handle leading slashes in volume comparisons - Update FileStorage and Show components to use shouldBeReadOnlyInUI() - Show consolidated warning message for service/compose resources in all.blade.php - Remove redundant per-volume warnings for service resources - Clean up configuration.blade.php formatting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
1.1 KiB
PHP
19 lines
1.1 KiB
PHP
<div>
|
|
<div class="flex flex-col gap-4">
|
|
@if ($resource->type() === 'service' || data_get($resource, 'build_pack') === 'dockercompose')
|
|
<div class="w-full p-2 text-sm rounded bg-warning/10 text-warning">
|
|
Volume mounts are read-only. If you would like to add or modify a volume, you must edit your Docker
|
|
Compose file and reload the compose file.
|
|
</div>
|
|
@endif
|
|
@foreach ($resource->persistentStorages as $storage)
|
|
@if ($resource->type() === 'service')
|
|
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
|
|
:resource="$resource" :isFirst="$storage->id === $this->firstStorageId" isService='true' />
|
|
@else
|
|
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
|
|
:resource="$resource" :isFirst="$storage->id === $this->firstStorageId" startedAt="{{ data_get($resource, 'started_at') }}" />
|
|
@endif
|
|
@endforeach
|
|
</div>
|
|
</div>
|