From 589c763ef88b051c766ebca510b8d7d4ac43ab8c Mon Sep 17 00:00:00 2001 From: Mahdi Date: Mon, 28 Sep 2026 17:35:03 +0330 Subject: [PATCH] Polish desktop sidebar branding and tighten automation rules card. Move profile and collapse control, show org even for one workspace, and center rules labels in the toolbar-height card. --- apps/web/src/components/OrgSwitcher.vue | 22 +- apps/web/src/components/brand/MentoLogo.vue | 4 +- apps/web/src/layouts/AppLayout.vue | 321 ++++++++++-------- .../web/src/views/AutomationsSettingsView.vue | 11 +- 4 files changed, 212 insertions(+), 146 deletions(-) diff --git a/apps/web/src/components/OrgSwitcher.vue b/apps/web/src/components/OrgSwitcher.vue index db89ad2..08137b4 100644 --- a/apps/web/src/components/OrgSwitcher.vue +++ b/apps/web/src/components/OrgSwitcher.vue @@ -31,6 +31,8 @@ const currentName = computed( () => auth.user?.organizationName || orgs.value.find((o) => o.id === auth.user?.organizationId)?.name || 'محیط کاری', ); +const canSwitch = computed(() => orgs.value.length > 1); + function apiError(e: unknown, fallback: string) { if (axios.isAxiosError(e)) { const msg = (e.response?.data as { message?: string | string[] })?.message; @@ -48,6 +50,7 @@ async function loadOrgs() { } async function toggle() { + if (!canSwitch.value) return; error.value = ''; if (open.value) { open.value = false; @@ -134,12 +137,13 @@ onUnmounted(() => { diff --git a/apps/web/src/layouts/AppLayout.vue b/apps/web/src/layouts/AppLayout.vue index 964fbea..d37e92c 100644 --- a/apps/web/src/layouts/AppLayout.vue +++ b/apps/web/src/layouts/AppLayout.vue @@ -1,5 +1,5 @@ @@ -422,9 +379,9 @@ onUnmounted(() => {