From f34e06b7d1b67d2102fb5aa283b8f9e317fc5fe0 Mon Sep 17 00:00:00 2001 From: James George <25279263+jamesgeorge007@users.noreply.github.com> Date: Mon, 5 Jan 2026 16:13:14 +0530 Subject: [PATCH] fix: remove redundant label on the Desktop App Follow up of 67dff5f. --- .../src/components/app/Header.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/hoppscotch-common/src/components/app/Header.vue b/packages/hoppscotch-common/src/components/app/Header.vue index c3ddede1..29948a26 100644 --- a/packages/hoppscotch-common/src/components/app/Header.vue +++ b/packages/hoppscotch-common/src/components/app/Header.vue @@ -46,6 +46,7 @@ (null) : ref(null) const isUserAdmin = ref(false) -const orgInfo = ref<{ name?: string; logo?: string | null } | null>(null) /** * Feature flag to enable the workspace selector login conversion @@ -400,19 +400,18 @@ const workspaceSelectorFlagEnabled = computed( () => !!platform.platformFeatureFlags.workspaceSwitcherLogin?.value ) +/** + * Show the dashboard link if the user is not on the default cloud instance and is an Admin + */ onMounted(async () => { const { organization } = platform if (!organization || organization.isDefaultCloudInstance) return - const fetchedOrgInfo = await organization.getOrgInfo() + const orgInfo = await organization.getOrgInfo() - if (fetchedOrgInfo) { - isUserAdmin.value = !!fetchedOrgInfo.isAdmin - orgInfo.value = { - name: fetchedOrgInfo.name, - logo: fetchedOrgInfo.logo || null, - } + if (orgInfo) { + isUserAdmin.value = !!orgInfo.isAdmin } })