debian-mirror-gitlab/app/assets/javascripts/batch_comments/components/drafts_count.vue

20 lines
396 B
Vue
Raw Normal View History

2020-06-23 00:09:42 +05:30
<script>
import { mapGetters } from 'vuex';
2020-10-24 23:57:45 +05:30
import { GlBadge } from '@gitlab/ui';
2020-06-23 00:09:42 +05:30
export default {
2020-10-24 23:57:45 +05:30
components: {
GlBadge,
},
2020-06-23 00:09:42 +05:30
computed: {
...mapGetters('batchComments', ['draftsCount']),
},
};
</script>
<template>
2020-10-24 23:57:45 +05:30
<gl-badge size="sm" variant="success">
{{ draftsCount }}
2020-06-23 00:09:42 +05:30
<span class="sr-only"> {{ n__('draft', 'drafts', draftsCount) }} </span>
2020-10-24 23:57:45 +05:30
</gl-badge>
2020-06-23 00:09:42 +05:30
</template>