feat(ui): add share modal and users

- fix(external users): fix app starting for external users
This commit is contained in:
Edouard Vanbelle
2026-06-02 12:25:44 +02:00
parent ec72374651
commit 9fac34f91e
15 changed files with 468 additions and 54 deletions
+9 -3
View File
@@ -299,9 +299,15 @@ function switchToFilesSection() {
//reset files view + remove any error
ui.resetFilesList();
// Reset to home folder and update breadcrumb
app.currentPath = app.userHomeFolderId || '';
app.breadcrumbPath = [];
// Reset to home folder and update breadcrumb. External users have no
// home — leave `currentPath` as the caller set it (e.g. the magic-link
// landing's hash context) so loadFiles() doesn't fall through to
// `/api/folders//resources`. If `currentPath` is still empty by the
// time loadFiles() runs, it self-redirects to /#/sharedwithme.
if (!app.isExternalUser) {
app.currentPath = app.userHomeFolderId || '';
app.breadcrumbPath = [];
}
ui.updateBreadcrumb();
if (batchToolbar) batchToolbar.clear();