Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix workspaces color

Smaug6739f33196a9a8b3
diff --git a/frontend/app/components/Sidebar/SidebarWorkspaces.vue b/frontend/app/components/Sidebar/SidebarWorkspaces.vue
index 9d6e0b39..ee3dc514 100644
--- a/frontend/app/components/Sidebar/SidebarWorkspaces.vue
+++ b/frontend/app/components/Sidebar/SidebarWorkspaces.vue
@@ -29,7 +29,7 @@ import type { Workspace } from './helpers';
const { workspaceId } = useSidebar();
const storage_item = localStorage.getItem('filterWorkspace');
const props = defineProps<{ options: Workspace[] }>();
-const all_workspaces = ref({ text: 'All Workspaces', value: null });
+const all_workspaces = ref({ text: 'All Workspaces', value: null, meta: { color: -1 } });
if (storage_item && props.options.find(option => option.value == storage_item)) workspaceId.value = storage_item;
diff --git a/frontend/app/components/Sidebar/helpers.ts b/frontend/app/components/Sidebar/helpers.ts
index f65dc609..b8fc547b 100644
--- a/frontend/app/components/Sidebar/helpers.ts
+++ b/frontend/app/components/Sidebar/helpers.ts
@@ -11,7 +11,7 @@ export interface DefaultItem {
export interface Workspace {
text: string;
value: string | null;
- meta?: Category;
+ meta?: Partial<Category>;
}
export const navigationItems: Item<DefaultItem>[] = [