Skip to content
代码片段 群组 项目
未验证 提交 1ac8ff7e 编辑于 作者: Paul Slaughter's avatar Paul Slaughter 提交者: GitLab
浏览文件

Merge branch 'add-approval-rule-action-buttons' into 'master'

Add approval rule: Move action buttons to content

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



Merged-by: default avatarPaul Slaughter <pslaughter@gitlab.com>
Approved-by: default avatarMichael Le <mle@gitlab.com>
Approved-by: default avatarNataliia Radina <nradina@gitlab.com>
Approved-by: default avatarPaul Slaughter <pslaughter@gitlab.com>
Co-authored-by: default avatarSascha Eggenberger <seggenberger@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -77,20 +77,7 @@ export default {
<h2 class="gl-mt-0 gl-text-size-h2">{{ title }}</h2>
</template>
<template #header>
<gl-button
variant="confirm"
data-testid="save-approval-rule-button"
:loading="isLoading"
@click="submit"
>
{{ $options.I18N.saveChanges }}
</gl-button>
<gl-button variant="confirm" category="secondary" @click="$emit('close')">
{{ $options.I18N.cancel }}
</gl-button>
</template>
<template #default>
<div>
<rule-form
ref="form"
:init-rule="rule"
......@@ -99,6 +86,20 @@ export default {
:default-rule-name="defaultRuleName"
v-on="$listeners"
/>
</template>
<div class="gl-flex gl-gap-3">
<gl-button
variant="confirm"
data-testid="save-approval-rule-button"
:loading="isLoading"
@click="submit"
>
{{ $options.I18N.saveChanges }}
</gl-button>
<gl-button variant="confirm" category="secondary" @click="$emit('close')">
{{ $options.I18N.cancel }}
</gl-button>
</div>
</div>
</gl-drawer>
</template>
......@@ -36,7 +36,10 @@ describe('Approvals DrawerRuleCreate', () => {
wrapper = shallowMountExtended(DrawerRuleCreate, {
store: new Vuex.Store(store),
stubs: { RuleForm: RuleFormStub },
stubs: {
RuleForm: RuleFormStub,
GlDrawer,
},
propsData,
});
};
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册