debian-mirror-gitlab/app/assets/javascripts/cycle_analytics/components/limit_warning_component.vue

36 lines
651 B
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
import tooltip from '../../vue_shared/directives/tooltip';
export default {
directives: {
tooltip,
},
props: {
count: {
type: Number,
required: true,
},
},
};
</script>
<template>
<span
v-if="count === 50"
2018-11-08 19:23:39 +05:30
class="events-info float-right"
2018-03-17 18:26:18 +05:30
>
<i
v-tooltip
:title="n__(
'Limited to showing %d event at most',
'Limited to showing %d events at most',
50
)"
2018-11-08 19:23:39 +05:30
class="fa fa-warning"
aria-hidden="true"
2018-03-17 18:26:18 +05:30
data-placement="top"
>
</i>
{{ n__('Showing %d event', 'Showing %d events', 50) }}
</span>
</template>