Fix popups (#2384)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2022-11-17 11:29:58 +07:00
committed by GitHub
parent 126b7eb772
commit 7e03e8f59d
38 changed files with 139 additions and 106 deletions
@@ -62,7 +62,7 @@
} from '@hcengineering/ui'
import view from '@hcengineering/view'
import { ObjectBox } from '@hcengineering/view-resources'
import { createEventDispatcher, afterUpdate } from 'svelte'
import { createEventDispatcher } from 'svelte'
import { activeProject, activeSprint, updateIssueRelation } from '../issues'
import tracker from '../plugin'
import AssigneeEditor from './issues/AssigneeEditor.svelte'
@@ -638,8 +638,6 @@
)
}
}
afterUpdate(() => dispatch('changeContent'))
</script>
<Card
@@ -650,6 +648,7 @@
on:close={() => dispatch('close')}
createMore={false}
onCancel={showConfirmationDialog}
on:changeContent
>
<svelte:fragment slot="header">
<div class="flex-row-center">
@@ -707,7 +706,7 @@
maxHeight={'20vh'}
bind:content={object.description}
placeholder={tracker.string.IssueDescriptionPlaceholder}
on:changeContent
on:changeSize={() => dispatch('changeContent')}
/>
{/key}
<IssueTemplateChilds
@@ -716,7 +715,6 @@
project={object.project}
isScrollable
maxHeight={'20vh'}
on:changeContent
/>
<svelte:fragment slot="pool">
<div class="flex flex-wrap" style:gap={'0.2vw'}>
@@ -5,14 +5,11 @@
import { createQuery, getClient, ObjectSearchPopup, ObjectSearchResult } from '@hcengineering/presentation'
import { Issue } from '@hcengineering/tracker'
import { Action, closePopup, Menu, showPopup } from '@hcengineering/ui'
import { afterUpdate, createEventDispatcher } from 'svelte'
import { updateIssueRelation } from '../issues'
import tracker from '../plugin'
export let value: Issue
const dispatch = createEventDispatcher()
const client = getClient()
const query = createQuery()
$: relations = {
@@ -126,10 +123,8 @@
},
...(hasRelation ? removeRelationAction : [])
]
afterUpdate(() => dispatch('changeContent'))
</script>
{#if actions}
<Menu {actions} on:changeContent={() => dispatch('changeContent')} />
<Menu {actions} on:changeContent />
{/if}