mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 20:17:05 +00:00
feat(ui): show S3 backup status and move domain action
Eager-load S3 on volume backup lists and add an S3 status column with Configured/Unavailable/Not set badges. Surface Local vs S3 on the persistent storages backup column. Move service resource domain links to a globe action in the card footer, and update related tests and grid CSS.
This commit is contained in:
1 parent
d68b198d53
commit
4539d1442e
12 files changed
+82
-24
No files matched your search
@@ -31,7 +31,7 @@ class Index extends Component
|
||||
public function render(): View
|
||||
{
|
||||
$backups = ScheduledVolumeBackup::query()
|
||||
->with(['backupable', 'latestExecution'])
|
||||
->with(['backupable', 'latestExecution', 's3'])
|
||||
->withCount('executions')
|
||||
->forApplication($this->application)
|
||||
->latest()
|
||||
|
||||
@@ -31,7 +31,7 @@ class Index extends Component
|
||||
public function render(): View
|
||||
{
|
||||
$backups = ScheduledVolumeBackup::query()
|
||||
->with(['backupable.resource', 'latestExecution'])
|
||||
->with(['backupable.resource', 'latestExecution', 's3'])
|
||||
->withCount('executions')
|
||||
->forService($this->service)
|
||||
->latest()
|
||||
|
||||
@@ -28,7 +28,7 @@ class All extends Component
|
||||
/**
|
||||
* Precomputed per-volume backup badge/link data.
|
||||
*
|
||||
* @var array<int, array{enabled: bool, url: ?string}>
|
||||
* @var array<int, array{enabled: bool, s3: bool, url: ?string}>
|
||||
*/
|
||||
public array $volumeBackupMeta = [];
|
||||
|
||||
@@ -241,6 +241,7 @@ class All extends Component
|
||||
|
||||
$this->volumeBackupMeta[(int) $storage->id] = [
|
||||
'enabled' => $enabled,
|
||||
's3' => $enabled && (bool) $backup?->save_s3,
|
||||
'url' => $url,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user