Add a separate setting to control if guests can join WS (#9540)

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
This commit is contained in:
Anton Alexeyev
2025-07-14 12:36:46 +07:00
committed by GitHub
parent 9f3606424e
commit 446a2f9dda
26 changed files with 117 additions and 8 deletions
@@ -2,6 +2,7 @@
import { Button, navigate, Notification, NotificationToast } from '@hcengineering/ui'
import view from '@hcengineering/view'
import { getCurrentWorkspaceUrl } from '@hcengineering/presentation'
import { allowGuestSignUpStore } from '../utils'
export let onRemove: () => void
export let notification: Notification
@@ -16,7 +17,11 @@
{notification.subTitle}
</svelte:fragment>
<svelte:fragment slot="buttons">
<Button label={view.string.ReadOnlyJoinWorkspace} stopPropagation={false} on:click={joinWorkspace} />
{#if $allowGuestSignUpStore}
<Button label={view.string.ReadOnlyJoinWorkspace} stopPropagation={false} on:click={joinWorkspace} />
{:else}
<div style="width: auto" />
{/if}
<a href="https://huly.io/signup" target="_blank">
<Button label={view.string.ReadOnlySignUp} stopPropagation={false} />
</a>