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} -