Extract the database import form into its own component and add realtime status refresh components for application server badges and service resource cards.
10 lines
363 B
PHP
10 lines
363 B
PHP
<div>
|
|
<h2>Import Backup</h2>
|
|
@if ($unsupported)
|
|
<div>Database restore is not supported.</div>
|
|
@elseif (str($resourceStatus)->startsWith('running'))
|
|
<livewire:project.database.import-form wire:key="database-import-form-{{ $resourceUuid }}" />
|
|
@else
|
|
<div>Database must be running to restore a backup.</div>
|
|
@endif
|
|
</div>
|