mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 11:31:57 +03:00
Fix_issue_create_notification (#2931)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
cf7fdb7f16
commit
29cfc73503
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user