2019-03-02 22:35:43 +05:30
|
|
|
<script>
|
2020-04-08 14:13:33 +05:30
|
|
|
import { GlLoadingIcon } from '@gitlab/ui';
|
|
|
|
|
2019-03-02 22:35:43 +05:30
|
|
|
export default {
|
|
|
|
name: 'ResolveDiscussionButton',
|
2020-04-08 14:13:33 +05:30
|
|
|
components: {
|
|
|
|
GlLoadingIcon,
|
|
|
|
},
|
2019-03-02 22:35:43 +05:30
|
|
|
props: {
|
|
|
|
isResolving: {
|
|
|
|
type: Boolean,
|
|
|
|
required: false,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
buttonTitle: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<button ref="button" type="button" class="btn btn-default ml-sm-2" @click="$emit('onClick')">
|
2020-04-08 14:13:33 +05:30
|
|
|
<gl-loading-icon v-if="isResolving" ref="isResolvingIcon" inline />
|
2019-03-02 22:35:43 +05:30
|
|
|
{{ buttonTitle }}
|
|
|
|
</button>
|
|
|
|
</template>
|