Fix file manager select-all and delete actions.
Deploy Ladill Hosting / deploy (push) Successful in 27s

Correct a JavaScript syntax error that prevented the file manager Alpine component from loading, and include the confirm modal in the hosting panel layout so delete prompts render.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-18 13:54:18 +00:00
co-authored by Cursor
parent 0bdc9513b0
commit 01325d3edf
2 changed files with 3 additions and 1 deletions
@@ -68,6 +68,8 @@
</div> </div>
</div> </div>
@include('partials.confirm-prompt')
@stack('scripts') @stack('scripts')
</body> </body>
</html> </html>
@@ -418,7 +418,7 @@
this.selected = event.target.checked ? [...this.allPaths] : []; this.selected = event.target.checked ? [...this.allPaths] : [];
}, },
async async async bulkAction(action) { async bulkAction(action) {
if (action === 'delete') { if (action === 'delete') {
if (!await this.$store.ladillConfirm.ask({ title: 'Delete items?', message: 'Delete ' + this.selected.length + ' item(s)? This cannot be undone.' })) return; if (!await this.$store.ladillConfirm.ask({ title: 'Delete items?', message: 'Delete ' + this.selected.length + ' item(s)? This cannot be undone.' })) return;
this.submitBulkDelete(); this.submitBulkDelete();