gitlab-org--gitlab-foss/app/assets/javascripts/notes/components/discussion_resolve_button.vue

27 lines
478 B
Vue

<script>
import { GlButton } from '@gitlab/ui';
export default {
name: 'ResolveDiscussionButton',
components: {
GlButton,
},
props: {
isResolving: {
type: Boolean,
required: false,
default: false,
},
buttonTitle: {
type: String,
required: true,
},
},
};
</script>
<template>
<gl-button :loading="isResolving" class="gl-xs-w-full ml-sm-2" @click="$emit('onClick')">
{{ buttonTitle }}
</gl-button>
</template>