2017-09-26 10:47:19 +00:00
|
|
|
<script>
|
2020-10-02 03:08:28 +00:00
|
|
|
import { GlIcon, GlTooltipDirective } from '@gitlab/ui';
|
2017-09-26 10:47:19 +00:00
|
|
|
|
2018-10-10 06:09:55 +00:00
|
|
|
export default {
|
2020-10-02 03:08:28 +00:00
|
|
|
components: {
|
|
|
|
GlIcon,
|
|
|
|
},
|
2018-10-10 06:09:55 +00:00
|
|
|
directives: {
|
2018-11-05 13:12:40 +00:00
|
|
|
GlTooltip: GlTooltipDirective,
|
2018-10-10 06:09:55 +00:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
count: {
|
|
|
|
type: Number,
|
|
|
|
required: true,
|
2018-01-05 12:56:55 +00:00
|
|
|
},
|
2018-10-10 06:09:55 +00:00
|
|
|
},
|
|
|
|
};
|
2017-09-26 10:47:19 +00:00
|
|
|
</script>
|
|
|
|
<template>
|
2018-11-16 20:07:38 +00:00
|
|
|
<span v-if="count === 50" class="events-info float-right">
|
2020-10-02 03:08:28 +00:00
|
|
|
<gl-icon
|
|
|
|
v-gl-tooltip="{
|
|
|
|
title: n__(
|
|
|
|
'Limited to showing %d event at most',
|
|
|
|
'Limited to showing %d events at most',
|
|
|
|
50,
|
|
|
|
),
|
|
|
|
}"
|
|
|
|
name="warning"
|
2018-06-11 09:49:47 +00:00
|
|
|
aria-hidden="true"
|
2020-10-02 03:08:28 +00:00
|
|
|
/>
|
2017-09-26 10:47:19 +00:00
|
|
|
{{ n__('Showing %d event', 'Showing %d events', 50) }}
|
|
|
|
</span>
|
|
|
|
</template>
|