From 580ca436b391095308000103e695ba7c584eb068 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Thu, 26 Aug 2021 21:08:07 +0200 Subject: [PATCH] popup experiment Signed-off-by: Andrey Platov --- .../components/CreateCandidate copy.svelte | 73 +++++++++++++++++++ .../src/components/CreateCandidate.svelte | 23 +----- .../src/components/SpaceHeader.svelte | 8 +- 3 files changed, 78 insertions(+), 26 deletions(-) create mode 100644 plugins/recruit-resources/src/components/CreateCandidate copy.svelte diff --git a/plugins/recruit-resources/src/components/CreateCandidate copy.svelte b/plugins/recruit-resources/src/components/CreateCandidate copy.svelte new file mode 100644 index 0000000000..7e83ac58c8 --- /dev/null +++ b/plugins/recruit-resources/src/components/CreateCandidate copy.svelte @@ -0,0 +1,73 @@ + + + + + { dispatch('close') }}> + +
+ + + + + + +
+
+ + + + + + +
+
diff --git a/plugins/recruit-resources/src/components/CreateCandidate.svelte b/plugins/recruit-resources/src/components/CreateCandidate.svelte index 7e83ac58c8..9fc722ae76 100644 --- a/plugins/recruit-resources/src/components/CreateCandidate.svelte +++ b/plugins/recruit-resources/src/components/CreateCandidate.svelte @@ -49,25 +49,4 @@ } - { dispatch('close') }}> - -
- - - - - - -
-
- - - - - - -
-
+ diff --git a/plugins/workbench-resources/src/components/SpaceHeader.svelte b/plugins/workbench-resources/src/components/SpaceHeader.svelte index 73b2bf367b..cf63e5a20a 100644 --- a/plugins/workbench-resources/src/components/SpaceHeader.svelte +++ b/plugins/workbench-resources/src/components/SpaceHeader.svelte @@ -23,7 +23,7 @@ import Star from './icons/Star.svelte' import { getClient, createQuery } from '@anticrm/presentation' - import { showModal } from '@anticrm/ui' + import { showPopup } from '@anticrm/ui' import { classIcon } from '../utils' import core from '@anticrm/core' @@ -37,8 +37,8 @@ $: query.query(core.class.Space, { _id: space }, result => { data = result[0] }) - function showCreateDialog() { - showModal(createItemDialog as AnyComponent, { space }) + function showCreateDialog(ev: Event) { + showPopup(createItemDialog as AnyComponent, { space }, ev.target as HTMLElement) } @@ -46,7 +46,7 @@ {#if data}
{#if createItemDialog} -