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

36 lines
627 B
Vue
Raw Normal View History

2018-03-17 18:26:18 +05:30
<script>
2018-12-13 13:39:08 +05:30
import tooltip from '../../vue_shared/directives/tooltip';
2018-03-17 18:26:18 +05:30
2018-12-13 13:39:08 +05:30
export default {
directives: {
tooltip,
},
props: {
count: {
type: Number,
required: true,
2018-03-17 18:26:18 +05:30
},
2018-12-13 13:39:08 +05:30
},
};
2018-03-17 18:26:18 +05:30
</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>