UBERF-9264: Fix set/unset parent issue (#7799)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-01-27 15:14:54 +05:00
committed by GitHub
parent 83a912d716
commit 331aa7f78f
20 changed files with 133 additions and 51 deletions
+24
View File
@@ -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,
+1 -6
View File
@@ -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,