diff --git a/.gitignore b/.gitignore index 38374a6a..a33c0fc4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ node_modules vite.config.js.timestamp-* vite.config.ts.timestamp-* /testapp -.idea/ \ No newline at end of file +.idea/ +tmp/ \ No newline at end of file diff --git a/src/lib/cloud/HyvorBar/BarUser.svelte b/src/lib/cloud/HyvorBar/BarUser.svelte index 6ea09bbe..282537e0 100644 --- a/src/lib/cloud/HyvorBar/BarUser.svelte +++ b/src/lib/cloud/HyvorBar/BarUser.svelte @@ -8,7 +8,11 @@ import { getCloudContext } from '../CloudContext/cloudContextState.svelte.js'; const cloudContext = $derived(getCloudContext()); - const logoutUrl = `${cloudContext.instance}/account/logout`; + const logoutUrl = $derived( + cloudContext.deployment === 'cloud' + ? `${cloudContext.instance}/account/logout` + : '/api/oidc/logout' + );
diff --git a/src/lib/cloud/HyvorBar/HyvorBar.svelte b/src/lib/cloud/HyvorBar/HyvorBar.svelte index 8bf59f03..2cc590c8 100644 --- a/src/lib/cloud/HyvorBar/HyvorBar.svelte +++ b/src/lib/cloud/HyvorBar/HyvorBar.svelte @@ -80,16 +80,21 @@ {getName()} - - {#if organization} - + {#if deployment === 'cloud'} + + + {#if organization} + + {/if} + {/if} -
- + {#if deployment === 'cloud'} + + {/if}
{#if deployment === 'cloud'} diff --git a/src/lib/cloud/OrganizationMembers/OrganizationMembersSearch.svelte b/src/lib/cloud/OrganizationMembers/OrganizationMembersSearch.svelte index edbc5b74..c0e351f4 100644 --- a/src/lib/cloud/OrganizationMembers/OrganizationMembersSearch.svelte +++ b/src/lib/cloud/OrganizationMembers/OrganizationMembersSearch.svelte @@ -16,7 +16,7 @@ } let { selectedUserId = $bindable(undefined) }: Props = $props(); - const { instance, organization } = getCloudContext(); + const { instance, organization, deployment } = getCloudContext(); let search = $state(''); let role = $derived(organization?.role); @@ -138,16 +138,18 @@
{/if}
-
- Looking for a user outside your organization? - {#if role === 'admin' || role === 'manager'} - - Invite them - - {:else} - Ask an admin to invite them - {/if} to your organization first. -
+ {#if deployment === 'cloud'} +
+ Looking for a user outside your organization? + {#if role === 'admin' || role === 'manager'} + + Invite them + + {:else} + Ask an admin to invite them + {/if} to your organization first. +
+ {/if} {/if}