debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_monitoring.vue
2019-02-13 22:33:31 +05:30

41 lines
761 B
Vue

<script>
/**
* Renders the Monitoring (Metrics) link in environments table.
*/
import { GlButton, GlTooltipDirective } from '@gitlab/ui';
import Icon from '~/vue_shared/components/icon.vue';
export default {
components: {
Icon,
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 d-none d-sm-none d-md-block"
rel="noopener noreferrer nofollow"
variant="default"
>
<icon name="chart" />
</gl-button>
</template>