refactor(frontend/sections): remove app.is{Xxx}View and use only app.currentSection

This commit is contained in:
Edouard Vanbelle
2026-04-15 22:18:42 +02:00
parent b1827c9f3d
commit 7bb4ed0940
4 changed files with 26 additions and 58 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ async function performSearch(query, sortBy) {
sort_by: sortBy || 'relevance'
};
if (!app.isTrashView) {
if (app.currentSection !== 'trash') {
// Ensure we have a valid folder_id before searching
if (!app.currentPath || app.currentPath === '') {
await resolveHomeFolder();