Welcome to mirror list, hosted at ThFree Co, Russian Federation.

discussion_resolve_button.vue « components « notes « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77f6f1e51c570f010d5acbddc0a09071200736d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script>
import { GlLoadingIcon } from '@gitlab/ui';

export default {
  name: 'ResolveDiscussionButton',
  components: {
    GlLoadingIcon,
  },
  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')">
    <gl-loading-icon v-if="isResolving" ref="isResolvingIcon" inline />
    {{ buttonTitle }}
  </button>
</template>