fix: database backups
This commit is contained in:
6
resources/views/emails/s3-connection-error.blade.php
Normal file
6
resources/views/emails/s3-connection-error.blade.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<x-emails.layout>
|
||||
Connection could not be establised with one of your S3 Storage ({{ $name }}). Please fix it
|
||||
[here]({{ $url }}).
|
||||
|
||||
{{ $reason }}
|
||||
</x-emails.layout>
|
||||
@@ -4,7 +4,9 @@
|
||||
<x-forms.button type="submit">
|
||||
Save
|
||||
</x-forms.button>
|
||||
<livewire:project.database.backup-now :backup="$backup" />
|
||||
@if (Str::of($status)->startsWith('running'))
|
||||
<livewire:project.database.backup-now :backup="$backup" />
|
||||
@endif
|
||||
@if ($backup->database_id !== 0)
|
||||
<x-forms.button isError wire:click="delete">Delete</x-forms.button>
|
||||
@endif
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<x-forms.input type="password" label="Password" readonly id="database.postgres_password" />
|
||||
</div>
|
||||
</div>
|
||||
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" />
|
||||
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database,'status')" />
|
||||
@else
|
||||
To configure automatic backup for your Coolify instance, you first need to add as a database resource
|
||||
into Coolify.
|
||||
|
||||
@@ -10,12 +10,17 @@
|
||||
<div class="pb-4">
|
||||
<h2>Storage Details</h2>
|
||||
<div>{{ $storage->name }}</div>
|
||||
@if ($storage->is_usable)
|
||||
<div> Usable </div>
|
||||
@else
|
||||
<div class="text-red-500"> Not Usable </div>
|
||||
@endif
|
||||
</div>
|
||||
<x-forms.button type="submit">
|
||||
Save
|
||||
</x-forms.button>
|
||||
<x-forms.button wire:click="test_s3_connection">
|
||||
Test Connection
|
||||
Validate Connection
|
||||
</x-forms.button>
|
||||
<x-forms.button isError isModal modalId="deleteS3Storage">
|
||||
Delete
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</x-slot:modalSubmit>
|
||||
</x-modal>
|
||||
<div class="pt-6">
|
||||
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" />
|
||||
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database,'status')" />
|
||||
<h3 class="py-4">Executions</h3>
|
||||
<livewire:project.database.backup-executions :backup="$backup" :executions="$executions" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user