mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
UBERF-9264: Fix set/unset parent issue (#7799)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -276,6 +276,30 @@ export function createActions (builder: Builder, issuesId: string, componentsId:
|
||||
},
|
||||
tracker.action.SetParent
|
||||
)
|
||||
createAction(
|
||||
builder,
|
||||
{
|
||||
action: view.actionImpl.UpdateDocument,
|
||||
actionProps: {
|
||||
key: 'attachedTo',
|
||||
value: tracker.ids.NoParent
|
||||
},
|
||||
query: {
|
||||
attachedTo: { $ne: tracker.ids.NoParent }
|
||||
},
|
||||
label: tracker.string.UnsetParentIssue,
|
||||
icon: tracker.icon.UnsetParent,
|
||||
input: 'none',
|
||||
category: tracker.category.Tracker,
|
||||
target: tracker.class.Issue,
|
||||
context: {
|
||||
mode: ['context'],
|
||||
application: tracker.app.Tracker,
|
||||
group: 'associate'
|
||||
}
|
||||
},
|
||||
tracker.action.UnsetParent
|
||||
)
|
||||
|
||||
createAction(
|
||||
builder,
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
//
|
||||
import { type DocUpdateMessageViewlet } from '@hcengineering/activity'
|
||||
import { type ChatMessageViewlet } from '@hcengineering/chunter'
|
||||
import { type StatusCategory, type Doc, type Ref, type DocManager } from '@hcengineering/core'
|
||||
import { type ObjectSearchCategory, type ObjectSearchFactory } from '@hcengineering/model-presentation'
|
||||
import { type Doc, type DocManager, type Ref, type StatusCategory } from '@hcengineering/core'
|
||||
import { type NotificationGroup, type NotificationType } from '@hcengineering/notification'
|
||||
import { mergeIds, type IntlString, type Resource } from '@hcengineering/platform'
|
||||
import { type ProjectType } from '@hcengineering/task'
|
||||
@@ -87,10 +86,6 @@ export default mergeIds(trackerId, tracker, {
|
||||
MilestoneChatMessageViewlet: '' as Ref<ChatMessageViewlet>,
|
||||
DefaultProjectType: '' as Ref<ProjectType>
|
||||
},
|
||||
completion: {
|
||||
IssueQuery: '' as Resource<ObjectSearchFactory>,
|
||||
IssueCategory: '' as Ref<ObjectSearchCategory>
|
||||
},
|
||||
actionImpl: {
|
||||
Move: '' as ViewAction,
|
||||
CopyToClipboard: '' as ViewAction,
|
||||
|
||||
Reference in New Issue
Block a user