Fix "SetParent", "Add sub-issue" and "Set Due date" actions (#2185)

This commit is contained in:
Sergei Ogorelkov 2022-07-05 01:13:15 +07:00 committed by GitHub
parent f30961e665
commit f7bd1389f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 5 deletions

View File

@ -595,7 +595,8 @@ export function createModel (builder: Builder): void {
component: tracker.component.CreateIssue,
element: 'top',
fillProps: {
_object: 'parentIssue'
_object: 'parentIssue',
space: 'space'
}
},
label: tracker.string.NewSubIssue,
@ -610,7 +611,7 @@ export function createModel (builder: Builder): void {
group: 'associate'
}
},
tracker.action.SetParent
tracker.action.NewSubIssue
)
createAction(
@ -619,7 +620,10 @@ export function createModel (builder: Builder): void {
action: view.actionImpl.ShowPopup,
actionProps: {
component: tracker.component.SetParentIssueActionPopup,
element: 'top'
element: 'top',
fillProps: {
_object: 'value'
}
},
label: tracker.string.SetParent,
icon: tracker.icon.Parent,
@ -641,7 +645,10 @@ export function createModel (builder: Builder): void {
actionPopup: tracker.component.SetParentIssueActionPopup,
actionProps: {
component: tracker.component.SetParentIssueActionPopup,
element: 'top'
element: 'top',
fillProps: {
_object: 'value'
}
},
label: tracker.string.SetParent,
icon: tracker.icon.Parent,
@ -790,7 +797,10 @@ export function createModel (builder: Builder): void {
actionProps: {
component: tracker.component.SetDueDateActionPopup,
props: { mondayStart: true, withTime: false },
element: 'top'
element: 'top',
fillProps: {
_object: 'value'
}
},
label: tracker.string.SetDueDate,
icon: tracker.icon.DueDate,

View File

@ -287,6 +287,7 @@ export default plugin(trackerId, {
CopyIssueLink: '' as Ref<Action>,
MoveToTeam: '' as Ref<Action>,
Relations: '' as Ref<Action>,
NewSubIssue: '' as Ref<Action>,
EditWorkflowStatuses: '' as Ref<Action>
},
team: {