Change position of AddTimeReport popup (#2474)

Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
Denis Maslennikov 2022-12-27 11:54:24 +07:00 committed by GitHub
parent 5a891aa686
commit 8c33350c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@
import { SortingOrder, WithLookup } from '@hcengineering/core' import { SortingOrder, WithLookup } from '@hcengineering/core'
import presentation, { Card, createQuery } from '@hcengineering/presentation' import presentation, { Card, createQuery } from '@hcengineering/presentation'
import { Issue, IssueStatus, Team } from '@hcengineering/tracker' import { Issue, IssueStatus, Team } from '@hcengineering/tracker'
import { Button, EditBox, EditStyle, eventToHTMLElement, IconAdd, Label, showPopup } from '@hcengineering/ui' import { Button, EditBox, EditStyle, IconAdd, Label, showPopup } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte' import { createEventDispatcher } from 'svelte'
import tracker from '../../../plugin' import tracker from '../../../plugin'
import IssuePresenter from '../IssuePresenter.svelte' import IssuePresenter from '../IssuePresenter.svelte'
@ -139,17 +139,13 @@
icon={IconAdd} icon={IconAdd}
size={'small'} size={'small'}
on:click={(event) => { on:click={(event) => {
showPopup( showPopup(TimeSpendReportPopup, {
TimeSpendReportPopup, issueId: object._id,
{ issueClass: object._class,
issueId: object._id, space: object.space,
issueClass: object._class, assignee: object.assignee,
space: object.space, defaultTimeReportDay
assignee: object.assignee, })
defaultTimeReportDay
},
eventToHTMLElement(event)
)
}} }}
label={tracker.string.TimeSpendReportAdd} label={tracker.string.TimeSpendReportAdd}
/> />