Able to remove scheduled backups
This commit is contained in:
parent
e17f1935d2
commit
fcb2e10097
@ -19,6 +19,13 @@ class BackupEdit extends Component
|
||||
'backup.number_of_backups_locally' => 'Number of Backups Locally',
|
||||
];
|
||||
|
||||
public function delete()
|
||||
{
|
||||
$this->backup->delete();
|
||||
$this->emit('success', 'Backup deleted successfully');
|
||||
$this->emit('refreshScheduledBackups');
|
||||
}
|
||||
|
||||
public function instantSave()
|
||||
{
|
||||
$this->backup->save();
|
||||
|
@ -4,6 +4,7 @@
|
||||
<x-forms.button type="submit">
|
||||
Save
|
||||
</x-forms.button>
|
||||
<x-forms.button isError wire:click="delete">Delete</x-forms.button>
|
||||
</div>
|
||||
<div class="flex py-2 gap-10">
|
||||
<x-forms.checkbox instantSave label="Enabled" id="backup.enabled"/>
|
||||
|
Loading…
Reference in New Issue
Block a user