mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 12:33:06 +00:00
fix: backup executions view
This commit is contained in:
@@ -50,7 +50,7 @@ class BackupExecutions extends Component
|
|||||||
public function refreshBackupExecutions(): void
|
public function refreshBackupExecutions(): void
|
||||||
{
|
{
|
||||||
if ($this->backup) {
|
if ($this->backup) {
|
||||||
$this->executions = $this->backup->executions()->get()->sortByDesc('created_at');
|
$this->executions = $this->backup->executions()->get();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div>
|
<div wire:init='refreshBackupExecutions'>
|
||||||
@isset($backup)
|
@isset($backup)
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h3 class="py-4">Executions</h3>
|
<h3 class="py-4">Executions</h3>
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
<livewire:project.database.heading :database="$database" />
|
<livewire:project.database.heading :database="$database" />
|
||||||
<div class="pt-6">
|
<div class="pt-6">
|
||||||
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
|
<livewire:project.database.backup-edit :backup="$backup" :s3s="$s3s" :status="data_get($database, 'status')" />
|
||||||
<livewire:project.database.backup-executions :backup="$backup" :executions="$executions" />
|
<livewire:project.database.backup-executions :backup="$backup" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<livewire:project.shared.configuration-checker :resource="$database" />
|
<livewire:project.shared.configuration-checker :resource="$database" />
|
||||||
<livewire:project.database.heading :database="$database" />
|
<livewire:project.database.heading :database="$database" />
|
||||||
<div class="pt-6">
|
<div class="pt-6">
|
||||||
<div class="flex gap-2 ">
|
<div class="flex gap-2">
|
||||||
<h2 class="pb-4">Scheduled Backups</h2>
|
<h2 class="pb-4">Scheduled Backups</h2>
|
||||||
<x-modal-input buttonTitle="+ Add" title="New Scheduled Backup">
|
<x-modal-input buttonTitle="+ Add" title="New Scheduled Backup">
|
||||||
<livewire:project.database.create-scheduled-backup :database="$database" :s3s="$s3s" />
|
<livewire:project.database.create-scheduled-backup :database="$database" :s3s="$s3s" />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="flex flex-wrap gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
@forelse($database->scheduledBackups as $backup)
|
@forelse($database->scheduledBackups as $backup)
|
||||||
@if ($type == 'database')
|
@if ($type == 'database')
|
||||||
<a class="box"
|
<a class="box"
|
||||||
@@ -32,8 +32,7 @@
|
|||||||
<livewire:project.database.backup-edit wire:key="{{ $selectedBackup->id }}" :backup="$selectedBackup"
|
<livewire:project.database.backup-edit wire:key="{{ $selectedBackup->id }}" :backup="$selectedBackup"
|
||||||
:s3s="$s3s" :status="data_get($database, 'status')" />
|
:s3s="$s3s" :status="data_get($database, 'status')" />
|
||||||
<h3 class="py-4">Executions</h3>
|
<h3 class="py-4">Executions</h3>
|
||||||
<livewire:project.database.backup-executions wire:keykey="{{ $selectedBackup->id }}" :backup="$selectedBackup"
|
<livewire:project.database.backup-executions wire:key="{{ $selectedBackup->id }}" :backup="$selectedBackup" />
|
||||||
:executions="$selectedBackup->executions" />
|
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user