feat(shared): show in classic view if an item is shared

This commit is contained in:
Edouard Vanbelle
2026-04-16 10:10:09 +02:00
parent c8e67f77ea
commit ceff552736
6 changed files with 94 additions and 21 deletions
+14 -6
View File
@@ -190,10 +190,10 @@ function switchToSharedSection() {
toggleFileContainer(false);
// Show shared view
if (sharedView) {
sharedView.init();
sharedView.init().then(() => {
sharedView.show();
}
});
if (multiSelect) multiSelect.clear();
}
@@ -222,7 +222,10 @@ function switchToFilesSection() {
ui.updateBreadcrumb();
if (multiSelect) multiSelect.clear();
loadFiles();
// temp solution
sharedView.loadItems().then(() => {
loadFiles();
});
}
function switchToFavoritesSection() {
@@ -245,7 +248,10 @@ function switchToFavoritesSection() {
ui.resetFilesList();
if (favorites) {
favorites.displayFavorites();
// temp solution
sharedView.loadItems().then(() => {
favorites.displayFavorites();
});
} else {
console.error('Favorites module not loaded or initialized');
ui.showError(`
@@ -277,7 +283,9 @@ function switchToRecentFilesSection() {
ui.resetFilesList();
if (recent) {
recent.displayRecentFiles();
sharedView.loadItems().then(() => {
favorites.displayFavorites();
});
} else {
console.error('Recent files module not loaded or initialized');
ui.showError(`