2019-03-02 22:35:43 +05:30
|
|
|
<script>
|
2020-11-24 15:15:51 +05:30
|
|
|
import { GlButton } from '@gitlab/ui';
|
2020-04-08 14:13:33 +05:30
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
export default {
|
|
|
|
name: 'ResolveDiscussionButton',
|
2020-04-08 14:13:33 +05:30
|
|
|
components: {
|
2020-11-24 15:15:51 +05:30
|
|
|
GlButton,
|
2020-04-08 14:13:33 +05:30
|
|
|
},
|
2019-03-02 22:35:43 +05:30
|
|
|
props: {
|
|
|
|
isResolving: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
buttonTitle: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2021-10-27 15:23:28 +05:30
|
|
|
<gl-button :loading="isResolving" class="gl-xs-w-full ml-sm-2" @click="$emit('onClick')">
|
2019-03-02 22:35:43 +05:30
|
|
|
{{ buttonTitle }}
|
2020-11-24 15:15:51 +05:30
|
|
|
</gl-button>
|
2019-03-02 22:35:43 +05:30
|
|
|
</template>
|