diff --git a/plugins/login-resources/src/components/CreateWorkspaceForm.svelte b/plugins/login-resources/src/components/CreateWorkspaceForm.svelte index 60b7910a3a..305ba8ce66 100644 --- a/plugins/login-resources/src/components/CreateWorkspaceForm.svelte +++ b/plugins/login-resources/src/components/CreateWorkspaceForm.svelte @@ -23,6 +23,7 @@ import { workbenchId } from '@hcengineering/workbench' import presentation from '@hcengineering/presentation' import { onMount } from 'svelte' + import { LoginInfo } from '@hcengineering/login' const fields = [ { @@ -39,8 +40,10 @@ let status: Status = OK + let account: LoginInfo | undefined = undefined + onMount(async () => { - const account = await getAccount() + account = await getAccount() if (account?.confirmed === false) { const loc = getCurrentLocation() loc.path[1] = 'confirmationSend' @@ -77,6 +80,7 @@ {fields} {object} {action} + subtitle={account?.email} bottomActions={[ { caption: login.string.HaveWorkspace, diff --git a/plugins/login-resources/src/components/Form.svelte b/plugins/login-resources/src/components/Form.svelte index 90a770e248..7f86b7a642 100644 --- a/plugins/login-resources/src/components/Form.svelte +++ b/plugins/login-resources/src/components/Form.svelte @@ -62,6 +62,7 @@ export let object: any export let ignoreInitialValidation: boolean = false export let withProviders: boolean = false + export let subtitle: string | undefined = undefined $: $themeStore.language && validate($themeStore.language) @@ -167,6 +168,11 @@ {:else} + {#if subtitle !== undefined} +
+ {subtitle} +
+ {/if}
{/if}
diff --git a/plugins/login-resources/src/components/LoginApp.svelte b/plugins/login-resources/src/components/LoginApp.svelte index aa8f73eeea..08fe93a542 100644 --- a/plugins/login-resources/src/components/LoginApp.svelte +++ b/plugins/login-resources/src/components/LoginApp.svelte @@ -14,18 +14,22 @@ // limitations under the License. -->
diff --git a/plugins/login-resources/src/components/LoginForm.svelte b/plugins/login-resources/src/components/LoginForm.svelte index 60518154ff..2bdb5bdfdb 100644 --- a/plugins/login-resources/src/components/LoginForm.svelte +++ b/plugins/login-resources/src/components/LoginForm.svelte @@ -14,22 +14,14 @@ // limitations under the License. --> -{#if loading} - -{:else} -
-{/if} +