blob: d149f5208fce40f2c9b03af1ea3ad8d1c2a32f00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<script>
import { GlButton } from '@gitlab/ui';
import { I18N_SHA_MISMATCH } from '../../i18n';
import StateContainer from '../state_container.vue';
export default {
name: 'ShaMismatch',
components: {
GlButton,
StateContainer,
},
i18n: {
I18N_SHA_MISMATCH,
},
props: {
mr: {
type: Object,
required: true,
},
},
};
</script>
<template>
<state-container status="warning">
<span
class="gl-font-weight-bold gl-md-mr-3 gl-flex-grow-1 gl-ml-0! gl-text-body!"
data-qa-selector="head_mismatch_content"
>
{{ $options.i18n.I18N_SHA_MISMATCH.warningMessage }}
</span>
<template #actions>
<gl-button
data-testid="action-button"
size="small"
category="primary"
variant="confirm"
class="gl-align-self-start"
:href="mr.mergeRequestDiffsPath"
>
{{ $options.i18n.I18N_SHA_MISMATCH.actionButtonLabel }}
</gl-button>
</template>
</state-container>
</template>
|