blob: 463fc39b5ff804cbe4af83e421602efd6b29aa45 (
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
|
<script>
import Icon from '~/vue_shared/components/icon.vue';
export default {
components: { Icon },
props: {
canApply: {
type: Boolean,
required: false,
default: false,
},
},
methods: {
applySuggestion() {
this.$emit('apply');
},
},
};
</script>
<template>
<div class="file-title-flex-parent md-suggestion-header border-bottom-0 mt-2">
<div>
Suggested change
<icon name="question-o" css-classes="link-highlight" />
</div>
<button
v-if="canApply"
type="button"
class="btn"
@click="applySuggestion">Apply suggestion</button>
</div>
</template>
|