Merge pull request #273 from EdouardVanbelle/fix/photo-section

This commit is contained in:
Dionisio Pozo
2026-04-08 14:29:01 +02:00
committed by GitHub
2 changed files with 5 additions and 6 deletions
-1
View File
@@ -105,7 +105,6 @@ function setActionsBarMode(mode, force = false) {
if (mode === 'hidden') {
elements.actionsBar.classList.add('hidden');
elements.actionsBar.dataset.mode = 'hidden';
console.log('......setup actions bar to hidden');
return;
}
+5 -5
View File
@@ -288,15 +288,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();
@@ -312,8 +312,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');