Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sha_mismatch.vue « states « components « vue_merge_request_widget « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7eeba8d8f89bcf6158670169576a0b814400d289 (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
<script>
import { GlButton } from '@gitlab/ui';
import { I18N_SHA_MISMATCH } from '../../i18n';
import statusIcon from '../mr_widget_status_icon.vue';

export default {
  name: 'ShaMismatch',
  components: {
    statusIcon,
    GlButton,
  },
  i18n: {
    I18N_SHA_MISMATCH,
  },
  props: {
    mr: {
      type: Object,
      required: true,
    },
  },
};
</script>

<template>
  <div class="mr-widget-body media">
    <status-icon :show-disabled-button="false" status="warning" />
    <div class="media-body">
      <span class="gl-font-weight-bold" data-qa-selector="head_mismatch_content">
        {{ $options.i18n.I18N_SHA_MISMATCH.warningMessage }}
      </span>
      <gl-button
        class="gl-ml-3"
        data-testid="action-button"
        size="small"
        category="primary"
        variant="confirm"
        :href="mr.mergeRequestDiffsPath"
        >{{ $options.i18n.I18N_SHA_MISMATCH.actionButtonLabel }}</gl-button
      >
    </div>
  </div>
</template>