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

28 lines
465 B
Vue
Raw Normal View History

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>
2020-11-24 15:15:51 +05:30
<gl-button :loading="isResolving" class="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>