debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_monitoring.vue
2020-04-22 19:07:51 +05:30

42 lines
838 B
Vue

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