mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 03:25:01 +02:00
TSK-458: Create of sub-issue not show Issue created notification (#2419)
Signed-off-by: Denis Maslennikov <denis.maslennikov@gmail.com>
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
} from '@hcengineering/tracker'
|
||||
import {
|
||||
ActionIcon,
|
||||
addNotification,
|
||||
Button,
|
||||
Component,
|
||||
DatePresenter,
|
||||
@@ -54,11 +55,7 @@
|
||||
Menu,
|
||||
setMetadataLocalStorage,
|
||||
showPopup,
|
||||
Spinner,
|
||||
NotificationPosition,
|
||||
NotificationSeverity,
|
||||
Notification,
|
||||
notificationsStore
|
||||
Spinner
|
||||
} from '@hcengineering/ui'
|
||||
import view from '@hcengineering/view'
|
||||
import { ObjectBox } from '@hcengineering/view-resources'
|
||||
@@ -518,21 +515,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
const notification: Notification = {
|
||||
id: generateId(),
|
||||
title: tracker.string.IssueCreated,
|
||||
subTitle: getTitle(object.title),
|
||||
severity: NotificationSeverity.Success,
|
||||
position: NotificationPosition.BottomRight,
|
||||
component: IssueNotification,
|
||||
closeTimeout: 10000,
|
||||
params: {
|
||||
issueId: objectId,
|
||||
subTitlePostfix: (await translate(tracker.string.Created, { value: 1 })).toLowerCase()
|
||||
}
|
||||
}
|
||||
|
||||
notificationsStore.addNotification(notification)
|
||||
addNotification(tracker.string.IssueCreated, getTitle(object.title), IssueNotification, {
|
||||
issueId: objectId,
|
||||
subTitlePostfix: (await translate(tracker.string.Created, { value: 1 })).toLowerCase()
|
||||
})
|
||||
|
||||
objectId = generateId()
|
||||
resetObject()
|
||||
|
||||
@@ -18,13 +18,15 @@
|
||||
import presentation, { getClient, KeyedAttribute } from '@hcengineering/presentation'
|
||||
import { StyledTextArea } from '@hcengineering/text-editor'
|
||||
import { IssueStatus, IssuePriority, Issue, Team, calcRank } from '@hcengineering/tracker'
|
||||
import { Button, Component, EditBox } from '@hcengineering/ui'
|
||||
import { addNotification, Button, Component, EditBox } from '@hcengineering/ui'
|
||||
import tags, { TagElement, TagReference } from '@hcengineering/tags'
|
||||
import tracker from '../../../plugin'
|
||||
import AssigneeEditor from '../AssigneeEditor.svelte'
|
||||
import StatusEditor from '../StatusEditor.svelte'
|
||||
import PriorityEditor from '../PriorityEditor.svelte'
|
||||
import EstimationEditor from '../timereport/EstimationEditor.svelte'
|
||||
import IssueNotification from '../IssueNotification.svelte'
|
||||
import { translate } from '@hcengineering/platform'
|
||||
|
||||
export let parentIssue: Issue
|
||||
export let issueStatuses: WithLookup<IssueStatus>[]
|
||||
@@ -123,6 +125,11 @@
|
||||
tag: label.tag
|
||||
})
|
||||
}
|
||||
|
||||
addNotification(tracker.string.IssueCreated, getTitle(newIssue.title), IssueNotification, {
|
||||
issueId: objectId,
|
||||
subTitlePostfix: (await translate(tracker.string.Created, { value: 1 })).toLowerCase()
|
||||
})
|
||||
} finally {
|
||||
resetToDefaults()
|
||||
loading = false
|
||||
|
||||
Reference in New Issue
Block a user