From 71edab419258c157775f0f66baeceda6047faf25 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 13 Jan 2025 16:54:22 +0100 Subject: [PATCH] fix: UI --- .../project/database/backup-edit.blade.php | 111 +++++++----------- 1 file changed, 45 insertions(+), 66 deletions(-) diff --git a/resources/views/livewire/project/database/backup-edit.blade.php b/resources/views/livewire/project/database/backup-edit.blade.php index 1f3ee6913..4f3ebe8f8 100644 --- a/resources/views/livewire/project/database/backup-edit.blade.php +++ b/resources/views/livewire/project/database/backup-edit.blade.php @@ -5,17 +5,13 @@ Save @if (str($status)->startsWith('running')) - + @endif @if ($backup->database_id !== 0) - + ]" confirmationText="{{ $backup->database->name }}" confirmationLabel="Please confirm the execution of the actions by entering the Database Name of the scheduled backups below" shortConfirmationLabel="Database Name" /> @endif
@@ -23,91 +19,74 @@
@if ($backup->save_s3) -
- - - @foreach ($s3s as $s3) - - @endforeach - -
+
+ + + @foreach ($s3s as $s3) + + @endforeach + +
@endif

Settings

@if ($backup->database_type === 'App\Models\StandalonePostgresql' && $backup->database_id !== 0) -
- -
- @if (!$backup->dump_all) - - @endif +
+ +
+ @if (!$backup->dump_all) + + @endif @elseif($backup->database_type === 'App\Models\StandaloneMongodb') - + @elseif($backup->database_type === 'App\Models\StandaloneMysql') -
- -
- @if (!$backup->dump_all) - - @endif +
+ +
+ @if (!$backup->dump_all) + + @endif @elseif($backup->database_type === 'App\Models\StandaloneMariadb') -
- -
- @if (!$backup->dump_all) - - @endif +
+ +
+ @if (!$backup->dump_all) + + @endif @endif
- +

Backup Retention Settings

-

- These settings control how long backups are kept. -

    -
  • Setting a value to 0 means unlimited retention.
  • -
  • The retention rules work independently and whichever limit is reached first will trigger a cleanup of the older backups.
  • -
-

+
    +
  • Setting a value to 0 means unlimited retention
  • +
  • The retention rules work independently - whichever limit is reached first will trigger cleanup
  • +
- +

Local Backup Retention

- - + +
@if ($backup->save_s3) -
-

S3 Storage Retention

-
- - - -
+
+

S3 Storage Retention

+
+ + +
+
@endif