refactor(empty-list): simplify empty list, will now work on list view

This commit is contained in:
Edouard Vanbelle
2026-04-03 00:28:53 +02:00
parent db30639823
commit 5b821a7eab
5 changed files with 38 additions and 9 deletions
+11
View File
@@ -1493,10 +1493,21 @@ if (document.readyState === 'loading') {
initRubberBandSelection();
}
/**
*
* @param {boolean} show
*/
function showEmptyList(show) {
const emptyArea=document.getElementById("empty-files-state");
emptyArea.classList.toggle("hidden", !show);
}
// Expose helpers globally
window.toggleCardSelection = toggleCardSelection;
window.showContextMenuAtElement = showContextMenuAtElement;
window.initRubberBandSelection = initRubberBandSelection;
window.showEmptyList = showEmptyList;
/**
* Show a modern confirm dialog (replaces native confirm())