diff --git a/resources/js/app.js b/resources/js/app.js index fcabad2..66fef95 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -686,9 +686,15 @@ Alpine.data('filesManager', (config = {}) => ({ this.showToast('Delete files individually. Folder delete is not supported yet.'); return; } - if (! confirm(`Delete ${this.selectedFileIds.length} file${this.selectedFileIds.length === 1 ? '' : 's'}? This cannot be undone.`)) { - return; - } + const count = this.selectedFileIds.length; + const confirmed = await Alpine.store('ladillConfirm').ask({ + title: count === 1 ? 'Delete file?' : `Delete ${count} files?`, + message: 'This cannot be undone.', + confirmLabel: 'Delete', + cancelLabel: 'Cancel', + variant: 'danger', + }); + if (!confirmed) return; this.submitAction(this.routes.bulkDelete); }, diff --git a/resources/views/transfer/transfers/show.blade.php b/resources/views/transfer/transfers/show.blade.php index c4bffc0..16c2ed6 100644 --- a/resources/views/transfer/transfers/show.blade.php +++ b/resources/views/transfer/transfers/show.blade.php @@ -24,11 +24,18 @@ · {{ $fmtBytes($transfer->storage_bytes) }} stored · GHS {{ number_format($transfer->monthlyCostGhs(), 2) }}/mo

-
- @csrf - @method('DELETE') - -
+ + + + + @if(session('success'))