Fix download_file function in backup-executions.blade.php
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
<div class="flex-1"></div>
|
<div class="flex-1"></div>
|
||||||
@if (data_get($execution, 'status') === 'success')
|
@if (data_get($execution, 'status') === 'success')
|
||||||
<x-forms.button class=" dark:hover:bg-coolgray-400"
|
<x-forms.button class=" dark:hover:bg-coolgray-400"
|
||||||
wire:click="download_file({{ data_get($execution, 'id') }})">Download</x-forms.button>
|
x-on:click="download_file('{{ data_get($execution, 'id') }}')">Download</x-forms.button>
|
||||||
@endif
|
@endif
|
||||||
<x-modal-confirmation isErrorButton action="deleteBackup({{ data_get($execution, 'id') }})">
|
<x-modal-confirmation isErrorButton action="deleteBackup({{ data_get($execution, 'id') }})">
|
||||||
<x-slot:button-title>
|
<x-slot:button-title>
|
||||||
@@ -34,6 +34,11 @@
|
|||||||
</x-modal-confirmation>
|
</x-modal-confirmation>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<script>
|
||||||
|
function download_file(executionId) {
|
||||||
|
window.open('/download/backup/' + executionId, '_blank');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@empty
|
@empty
|
||||||
<div>No executions found.</div>
|
<div>No executions found.</div>
|
||||||
@endforelse
|
@endforelse
|
||||||
|
|||||||
Reference in New Issue
Block a user