Fix_issue_create_notification (#2931)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-11 16:05:22 +06:00 committed by GitHub
parent cf7fdb7f16
commit 29cfc73503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,8 @@
IconInfo,
Notification,
NotificationSeverity,
showPanel
navigate,
parseLocation
} from '@hcengineering/ui'
import { fade } from 'svelte/transition'
@ -73,8 +74,12 @@
}
}
const handleIssueOpened = () => {
if (issue) {
showPanel(tracker.component.EditIssue, issue._id, issue._class, 'content')
if (params?.issueUrl) {
const url = new URL(params?.issueUrl)
if (url.origin === window.location.origin) {
navigate(parseLocation(url))
}
}
onRemove()
@ -102,7 +107,7 @@
<IssueStatusIcon value={status} size="small" />
{/if}
{#if issue}
<IssuePresenter value={issue} onClick={onRemove} />
<IssuePresenter value={issue} />
{/if}
<div class="sub-title">
{subTitle}