diff --git a/app/templates/library.html b/app/templates/library.html index c174b41..3837f36 100644 --- a/app/templates/library.html +++ b/app/templates/library.html @@ -186,7 +186,7 @@

Library

- @@ -302,8 +302,14 @@
-
-

Loading…

+
+

Loading…

+
+
📁
+

No workspace open

+

Open a workspace to browse and manage your library items.

+ Go to Workspaces +
@@ -325,7 +331,7 @@
-
Add new @@ -501,6 +507,9 @@ function libraryPage() { moveModalOpen: false, moveIds: [], moveSearchQuery: '', + + // No workspace guard + noWorkspace: false, moveCandidates: [], _moveAllCandidates: [], @@ -804,6 +813,12 @@ function libraryPage() { this.isGiteaActive = (giteaEl ? giteaEl.textContent : '0') === '1'; this.giteaOwner = (document.getElementById('lib-gitea-owner') || {}).textContent || ''; this.giteaRepo = (document.getElementById('lib-gitea-repo') || {}).textContent || ''; + // Detect no workspace: no local wsId AND no Gitea active + if (!this.workspaceId && !this.isGiteaActive) { + this.noWorkspace = true; + this.loading = false; // don't show loading spinner + return; + } console.log('[Library] workspaceId=' + this.workspaceId + ' isGitea=' + this.isGiteaActive); var params = new URLSearchParams(window.location.search); var t = params.get('tab'); diff --git a/app/templates/settings.html b/app/templates/settings.html index d67b23a..f1485db 100644 --- a/app/templates/settings.html +++ b/app/templates/settings.html @@ -113,11 +113,11 @@ {{ user.get('full_name', user.get('login',''))[:1].upper() }}
-
diff --git a/app/templates/workspaces.html b/app/templates/workspaces.html index f793541..a13c4aa 100644 --- a/app/templates/workspaces.html +++ b/app/templates/workspaces.html @@ -68,8 +68,8 @@
-
- + +
+ +