debian-mirror-gitlab/app/assets/javascripts/cycle_analytics/components/limit_warning_component.vue
2018-12-23 12:14:25 +05:30

30 lines
588 B
Vue

<script>
import { GlTooltipDirective } from '@gitlab/ui';
export default {
directives: {
GlTooltip: GlTooltipDirective,
},
props: {
count: {
type: Number,
required: true,
},
},
};
</script>
<template>
<span v-if="count === 50" class="events-info float-right">
<i
v-gl-tooltip
:title="
n__('Limited to showing %d event at most', 'Limited to showing %d events at most', 50)
"
class="fa fa-warning"
aria-hidden="true"
>
</i>
{{ n__('Showing %d event', 'Showing %d events', 50) }}
</span>
</template>