fix(section): hide list view header in photos' section

This commit is contained in:
Edouard Vanbelle
2026-04-08 13:51:25 +02:00
parent 2e8e0ef6c5
commit 2c33eeb74c
2 changed files with 5 additions and 6 deletions
+5 -5
View File
@@ -282,15 +282,15 @@ function switchToPhotosSection() {
const breadcrumb = document.querySelector('.breadcrumb');
breadcrumb?.classList.add('hidden');
// Hide file containers
toggleFileContainer(false);
// Hide actions-bar (photos has its own upload via selection bar)
window.setActionsBarMode('hidden');
//reset files view + remove any error
window.ui.resetFilesList();
// Hide file containers
toggleFileContainer(false);
// Show photos view
if (window.photosView) {
window.photosView.show();
@@ -306,8 +306,8 @@ function switchToTrashSection() {
breadcrumb?.classList.add('hidden');
// Show files containers (to be filled with trash)
const filesList = document.getElementById('files-list');
filesList.classList.remove('hidden');
// Hide file containers
toggleFileContainer(true);
setActionsBarMode('trash');