2026-08-03 21:11:54 +00:00
|
|
|
<div class="application-settings-form">
|
2024-04-11 11:20:46 +00:00
|
|
|
@if ($unsupported)
|
2026-08-03 21:11:54 +00:00
|
|
|
<x-application.settings-section title="Restore database"
|
|
|
|
|
description="Import a backup into this database.">
|
|
|
|
|
<x-empty title="Restore is not supported"
|
|
|
|
|
description="This database type does not currently support backup imports."
|
|
|
|
|
icon-name="database" size="sm" />
|
|
|
|
|
</x-application.settings-section>
|
2026-05-28 17:30:12 +00:00
|
|
|
@elseif (str($resourceStatus)->startsWith('running'))
|
|
|
|
|
<livewire:project.database.import-form wire:key="database-import-form-{{ $resourceUuid }}" />
|
2024-04-11 11:20:46 +00:00
|
|
|
@else
|
2026-08-03 21:11:54 +00:00
|
|
|
<x-application.settings-section title="Restore database"
|
|
|
|
|
description="Import a backup into this database.">
|
|
|
|
|
<x-empty title="Start the database first"
|
|
|
|
|
description="The database must be running before Coolify can restore a backup."
|
|
|
|
|
icon-name="database" size="sm" />
|
|
|
|
|
</x-application.settings-section>
|
2024-01-10 14:42:54 +00:00
|
|
|
@endif
|
2026-05-28 17:30:12 +00:00
|
|
|
</div>
|