fix: pass path in query to ensure pathjail picks it up, add explicit error handling UI
All checks were successful
Automated Container Build / build-and-push (push) Successful in 39s

This commit is contained in:
Elijah 2026-05-23 14:34:31 -07:00
parent 9807ad6fe5
commit 1a1add48bf
2 changed files with 24 additions and 8 deletions

View file

@ -647,14 +647,18 @@ export default function FileExplorer({ onLogout }: FileExplorerProps) {
async function executeDeleteSingle(file: FileItem) {
const isPermanent = activeSection === 'trash';
await api.deleteFile(file.path, isPermanent);
if (isPermanent) {
loadTrash();
} else {
loadFiles(undefined, true);
try {
await api.deleteFile(file.path, isPermanent);
if (isPermanent) {
loadTrash();
} else {
loadFiles(undefined, true);
}
setDeleteConfirm(null);
showToast(isPermanent ? `Permanently deleted ${file.name}` : `Deleted ${file.name}`);
} catch (err: any) {
showToast(`Delete failed: ${err.message}`);
}
setDeleteConfirm(null);
showToast(isPermanent ? `Permanently deleted ${file.name}` : `Deleted ${file.name}`);
}
async function handlePin(file: FileItem) {