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

View File

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