2023-05-31 08:19:29 +00:00
|
|
|
<div>
|
2023-06-05 10:07:55 +00:00
|
|
|
<div>
|
2023-06-15 07:15:41 +00:00
|
|
|
<div class="flex items-center gap-2">
|
2023-08-07 20:14:21 +00:00
|
|
|
<h2>Storages</h2>
|
2023-09-22 09:23:49 +00:00
|
|
|
@if ($resource->type() !== 'service')
|
|
|
|
<x-helper
|
|
|
|
helper="For Preview Deployments, storage has a <span class='text-helper'>-pr-#PRNumber</span> in their
|
2023-06-05 10:07:55 +00:00
|
|
|
volume
|
2023-08-11 18:19:42 +00:00
|
|
|
name, example: <span class='text-helper'>-pr-1</span>" />
|
2023-09-22 09:23:49 +00:00
|
|
|
<x-forms.button class="btn" onclick="newStorage.showModal()">+ Add</x-forms.button>
|
|
|
|
<livewire:project.shared.storages.add />
|
|
|
|
@endif
|
2023-06-15 07:15:41 +00:00
|
|
|
</div>
|
2023-08-08 12:46:23 +00:00
|
|
|
<div>Persistent storage to preserve data between deployments.</div>
|
2023-06-05 10:07:55 +00:00
|
|
|
</div>
|
2023-05-31 08:19:29 +00:00
|
|
|
<div class="flex flex-col gap-2 py-4">
|
2023-08-07 20:14:21 +00:00
|
|
|
@forelse ($resource->persistentStorages as $storage)
|
2023-09-22 09:23:49 +00:00
|
|
|
@if ($resource->type() === 'service')
|
|
|
|
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage"
|
|
|
|
isReadOnly='true' />
|
|
|
|
@else
|
|
|
|
<livewire:project.shared.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" />
|
|
|
|
@endif
|
2023-07-13 11:16:24 +00:00
|
|
|
@empty
|
|
|
|
<div class="text-neutral-500">No storages found.</div>
|
|
|
|
@endforelse
|
2023-05-31 08:19:29 +00:00
|
|
|
</div>
|
2023-05-05 10:08:38 +00:00
|
|
|
</div>
|