mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 00:37:47 +00: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,
|
IconInfo,
|
||||||
Notification,
|
Notification,
|
||||||
NotificationSeverity,
|
NotificationSeverity,
|
||||||
showPanel
|
navigate,
|
||||||
|
parseLocation
|
||||||
} from '@hcengineering/ui'
|
} from '@hcengineering/ui'
|
||||||
import { fade } from 'svelte/transition'
|
import { fade } from 'svelte/transition'
|
||||||
|
|
||||||
@ -73,8 +74,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleIssueOpened = () => {
|
const handleIssueOpened = () => {
|
||||||
if (issue) {
|
if (params?.issueUrl) {
|
||||||
showPanel(tracker.component.EditIssue, issue._id, issue._class, 'content')
|
const url = new URL(params?.issueUrl)
|
||||||
|
|
||||||
|
if (url.origin === window.location.origin) {
|
||||||
|
navigate(parseLocation(url))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onRemove()
|
onRemove()
|
||||||
@ -102,7 +107,7 @@
|
|||||||
<IssueStatusIcon value={status} size="small" />
|
<IssueStatusIcon value={status} size="small" />
|
||||||
{/if}
|
{/if}
|
||||||
{#if issue}
|
{#if issue}
|
||||||
<IssuePresenter value={issue} onClick={onRemove} />
|
<IssuePresenter value={issue} />
|
||||||
{/if}
|
{/if}
|
||||||
<div class="sub-title">
|
<div class="sub-title">
|
||||||
{subTitle}
|
{subTitle}
|
||||||
|
Loading…
Reference in New Issue
Block a user