debian-mirror-gitlab/app/assets/javascripts/notes/components/discussion_resolve_button.vue
2019-03-02 22:35:43 +05:30

28 lines
535 B
Vue

<script>
export default {
name: 'ResolveDiscussionButton',
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')">
<i
v-if="isResolving"
ref="isResolvingIcon"
aria-hidden="true"
class="fa fa-spinner fa-spin"
></i>
{{ buttonTitle }}
</button>
</template>