debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_monitoring.vue

39 lines
736 B
Vue
Raw Normal View History

2017-08-17 22:00:37 +05:30
<script>
2020-11-24 15:15:51 +05:30
import { GlButton, GlTooltipDirective } from '@gitlab/ui';
2019-09-30 21:07:59 +05:30
import { __ } from '~/locale';
2018-11-18 11:00:15 +05:30
/**
* Renders the Monitoring (Metrics) link in environments table.
*/
export default {
components: {
2020-11-24 15:15:51 +05:30
GlButton,
2018-11-18 11:00:15 +05:30
},
directives: {
2019-02-15 15:39:39 +05:30
GlTooltip: GlTooltipDirective,
2018-11-18 11:00:15 +05:30
},
props: {
monitoringUrl: {
type: String,
required: true,
2018-10-15 14:42:47 +05:30
},
2018-11-18 11:00:15 +05:30
},
computed: {
title() {
2019-09-30 21:07:59 +05:30
return __('Monitoring');
2017-08-17 22:00:37 +05:30
},
2018-11-18 11:00:15 +05:30
},
};
2017-08-17 22:00:37 +05:30
</script>
<template>
2020-11-24 15:15:51 +05:30
<gl-button
2019-02-15 15:39:39 +05:30
v-gl-tooltip
2017-08-17 22:00:37 +05:30
:href="monitoringUrl"
:title="title"
2018-03-17 18:26:18 +05:30
:aria-label="title"
2020-11-24 15:15:51 +05:30
class="monitoring-url gl-display-none gl-display-sm-none gl-display-md-block"
icon="chart"
2018-11-08 19:23:39 +05:30
rel="noopener noreferrer nofollow"
2018-12-05 23:21:45 +05:30
variant="default"
2020-11-24 15:15:51 +05:30
/>
2017-08-17 22:00:37 +05:30
</template>