Skip to content
代码片段 群组 项目
未验证 提交 7e2ba68c 编辑于 作者: Coung Ngo's avatar Coung Ngo 提交者: GitLab
浏览文件

Merge branch 'nl-wi-action-order' into 'master'

Move close action first in work items action menu

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/149757



Merged-by: default avatarCoung Ngo <cngo@gitlab.com>
Approved-by: default avatarCoung Ngo <cngo@gitlab.com>
Co-authored-by: default avatarNick Leonard <nleonard@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -383,6 +383,18 @@ export default {
<gl-dropdown-divider />
</template>
<work-item-state-toggle
v-if="canUpdate"
:data-testid="$options.stateToggleTestId"
:work-item-id="workItemId"
:work-item-iid="workItemIid"
:work-item-state="workItemState"
:work-item-type="workItemType"
:full-path="fullPath"
show-as-dropdown-item
@error="emitStateToggleError"
/>
<gl-disclosure-dropdown-item
v-if="canPromoteToObjective"
:data-testid="$options.promoteActionTestId"
......@@ -410,18 +422,6 @@ export default {
<template #list-item>{{ confidentialItemText }}</template>
</gl-disclosure-dropdown-item>
<work-item-state-toggle
v-if="canUpdate"
:data-testid="$options.stateToggleTestId"
:work-item-id="workItemId"
:work-item-iid="workItemIid"
:work-item-state="workItemState"
:work-item-type="workItemType"
:full-path="fullPath"
show-as-dropdown-item
@error="emitStateToggleError"
/>
<gl-disclosure-dropdown-item
:data-testid="$options.copyReferenceTestId"
:data-clipboard-text="workItemReference"
......
......@@ -190,6 +190,10 @@ describe('WorkItemActions component', () => {
{
divider: true,
},
{
testId: TEST_ID_TOGGLE_ACTION,
text: '',
},
{
testId: TEST_ID_LOCK_ACTION,
text: 'Lock discussion',
......@@ -198,10 +202,6 @@ describe('WorkItemActions component', () => {
testId: TEST_ID_CONFIDENTIALITY_TOGGLE_ACTION,
text: 'Turn on confidentiality',
},
{
testId: TEST_ID_TOGGLE_ACTION,
text: '',
},
{
testId: TEST_ID_COPY_REFERENCE_ACTION,
text: 'Copy reference',
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册