mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 05:25:00 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user