debian-mirror-gitlab/app/assets/javascripts/diffs/components/merge_conflict_warning.vue

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.3 KiB
Vue
Raw Normal View History

2020-11-24 15:15:51 +05:30
<script>
2021-02-22 17:27:13 +05:30
import { GlButton, GlAlert, GlModalDirective } from '@gitlab/ui';
2020-11-24 15:15:51 +05:30
export default {
components: {
GlAlert,
GlButton,
},
2021-02-22 17:27:13 +05:30
directives: {
GlModalDirective,
},
2020-11-24 15:15:51 +05:30
props: {
mergeable: {
type: Boolean,
required: true,
},
resolutionPath: {
type: String,
required: true,
},
},
};
</script>
<template>
2022-04-04 11:22:00 +05:30
<div>
2020-11-24 15:15:51 +05:30
<gl-alert
:dismissible="false"
:title="__('There are merge conflicts')"
variant="warning"
class="gl-mb-5"
>
<p class="gl-mb-2">
{{ __('The comparison view may be inaccurate due to merge conflicts.') }}
</p>
<p class="gl-mb-0">
{{
__(
'Resolve these conflicts or ask someone with write access to this repository to merge it locally.',
)
}}
</p>
<template #actions>
<gl-button
v-if="resolutionPath"
:href="resolutionPath"
2022-07-23 23:45:48 +05:30
variant="confirm"
class="gl-mr-3 gl-alert-action"
2020-11-24 15:15:51 +05:30
>
{{ __('Resolve conflicts') }}
</gl-button>
<gl-button
v-if="mergeable"
2021-02-22 17:27:13 +05:30
v-gl-modal-directive="'modal-merge-info'"
2020-11-24 15:15:51 +05:30
class="gl-alert-action"
>
{{ __('Merge locally') }}
</gl-button>
</template>
</gl-alert>
</div>
</template>