debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_monitoring.vue
2020-11-24 15:15:51 +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-display-sm-none gl-display-md-block"
icon="chart"
rel="noopener noreferrer nofollow"
variant="default"
/>
</template>