fixed some issues
This commit is contained in:
@@ -58,6 +58,9 @@ window.emptyTrash = function() {
|
||||
// No files to delete, just close the modal
|
||||
const modal = bootstrap.Modal.getInstance(document.getElementById('emptyTrashModal'));
|
||||
modal.hide();
|
||||
// Remove the backdrop
|
||||
document.querySelector('.modal-backdrop')?.remove();
|
||||
document.body.classList.remove('modal-open');
|
||||
return Promise.resolve([]);
|
||||
}
|
||||
|
||||
@@ -90,6 +93,9 @@ window.emptyTrash = function() {
|
||||
// Close the modal
|
||||
const modal = bootstrap.Modal.getInstance(document.getElementById('emptyTrashModal'));
|
||||
modal.hide();
|
||||
// Remove the backdrop
|
||||
document.querySelector('.modal-backdrop')?.remove();
|
||||
document.body.classList.remove('modal-open');
|
||||
// Refresh the view to ensure everything is up to date
|
||||
fetchFiles();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user