mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 04:18:34 +00:00
fix(storage): split S3 endpoint input and persist stopped status
Persist exited status across application, database, service, and preview stop paths, and reuse the split host/port/path input for S3 endpoints with linked validation feedback.
This commit is contained in:
1 parent
ec8a24d178
commit
2677e47138
12 files changed
+132
-30
No files matched your search
@@ -3,6 +3,8 @@
|
||||
'wire' => true,
|
||||
'value' => '',
|
||||
'errorId' => null,
|
||||
'hostLabel' => 'Domain',
|
||||
'hostPlaceholder' => 'app.example.com',
|
||||
])
|
||||
|
||||
<div class="grid gap-4 sm:grid-cols-[8rem_minmax(0,1fr)_8rem]" x-data="{
|
||||
@@ -51,13 +53,24 @@
|
||||
<div class="min-w-0">
|
||||
<div class="mb-1.5 flex h-4 w-full items-center gap-1.5">
|
||||
<label for="{{ $id }}" class="mb-0! flex items-center gap-1.5 leading-4">
|
||||
Domain <x-highlighted text="*" />
|
||||
{{ $hostLabel }} <x-highlighted text="*" />
|
||||
</label>
|
||||
</div>
|
||||
<input id="{{ $id }}" type="text" class="input" x-model="host" placeholder="app.example.com"
|
||||
<input id="{{ $id }}" type="text" class="input" x-model="host" placeholder="{{ $hostPlaceholder }}"
|
||||
autocomplete="off" required />
|
||||
@error($errorId ?? $id)
|
||||
<p class="mt-1 text-[12px] text-red-500">{{ $message }}</p>
|
||||
@php
|
||||
preg_match('/(https?:\/\/\S+)$/', $message, $validationLinkMatches);
|
||||
$validationLink = $validationLinkMatches[1] ?? null;
|
||||
@endphp
|
||||
<p class="mt-1 text-[12px] text-red-500">
|
||||
@if ($validationLink)
|
||||
{{ str($message)->beforeLast($validationLink)->trim() }}
|
||||
<a class="font-medium underline" href="{{ $validationLink }}">Set them here.</a>
|
||||
@else
|
||||
{{ $message }}
|
||||
@endif
|
||||
</p>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user