mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
parent
d2262bbb16
commit
5ef57b2907
@ -14,7 +14,7 @@
|
||||
-->
|
||||
<script lang="ts">
|
||||
import type { IntlString } from '@anticrm/platform'
|
||||
import { afterUpdate, createEventDispatcher } from 'svelte'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
import { Label, EditWithIcon, IconSearch } from '@anticrm/ui'
|
||||
import UserInfo from './UserInfo.svelte'
|
||||
@ -34,8 +34,6 @@
|
||||
const dispatch = createEventDispatcher()
|
||||
const query = createQuery()
|
||||
$: query.query(_class, { name: { $like: '%'+search+'%' } }, result => { objects = result })
|
||||
|
||||
afterUpdate(() => { dispatch('update', true) })
|
||||
</script>
|
||||
|
||||
<div class="popup" style="max-height: {(maxHeight) ? maxHeight + 'px' : 'max-content'}">
|
||||
|
@ -15,7 +15,7 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { afterUpdate, onMount } from 'svelte'
|
||||
import { afterUpdate } from 'svelte'
|
||||
import type { AnySvelteComponent, AnyComponent, PopupAlignment } from '../types'
|
||||
import { closePopup } from '..'
|
||||
|
||||
@ -84,9 +84,9 @@
|
||||
afterUpdate(() => { fitPopup() })
|
||||
</script>
|
||||
|
||||
<svelte:window on:scroll={fitPopup} on:resize={fitPopup} />
|
||||
<svelte:window on:resize={fitPopup} />
|
||||
<div class="popup" bind:this={modalHTML} style={`z-index: ${zIndex + 1};`}>
|
||||
<svelte:component this={is} {...props} {maxHeight} on:close={ (ev) => close(ev.detail) } on:update={fitPopup} />
|
||||
<svelte:component this={is} {...props} {maxHeight} on:close={ (ev) => close(ev.detail) } />
|
||||
</div>
|
||||
<div bind:this={modalOHTML} class="modal-overlay" style={`z-index: ${zIndex};`} on:click={() => close(undefined)} />
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user