debian-mirror-gitlab/app/assets/javascripts/notes/components/discussion_resolve_button.vue

29 lines
561 B
Vue
Raw Normal View History

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>