debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_monitoring.vue
2021-03-11 19:13:27 +05:30

38 lines
736 B
Vue

<script>
import { GlButton, GlTooltipDirective } from '@gitlab/ui';
import { __ } from '~/locale';
/**
* Renders the Monitoring (Metrics) link in environments table.
*/
export default {
components: {
GlButton,
},
directives: {
GlTooltip: GlTooltipDirective,
},
props: {
monitoringUrl: {
type: String,
required: true,
},
},
computed: {
title() {
return __('Monitoring');
},
},
};
</script>
<template>
<gl-button
v-gl-tooltip
:href="monitoringUrl"
:title="title"
:aria-label="title"
class="monitoring-url gl-display-none gl-sm-display-none gl-md-display-block"
icon="chart"
rel="noopener noreferrer nofollow"
variant="default"
/>
</template>