Refactor backup-edit.blade.php to conditionally display the "Backup All Databases" checkbox based on the database type and ID
This commit is contained in:
parent
3d58b92a33
commit
af35612c15
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
<h3>Settings</h3>
|
<h3>Settings</h3>
|
||||||
<div class="flex gap-2 flex-col ">
|
<div class="flex gap-2 flex-col ">
|
||||||
@if ($backup->database_type === 'App\Models\StandalonePostgresql')
|
@if ($backup->database_type === 'App\Models\StandalonePostgresql' && $backup->database_id !== 0)
|
||||||
<div class="w-48">
|
<div class="w-48">
|
||||||
<x-forms.checkbox label="Backup All Databases" id="backup.dump_all" instantSave />
|
<x-forms.checkbox label="Backup All Databases" id="backup.dump_all" instantSave />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue