2017-08-17 22:00:37 +05:30
|
|
|
<script>
|
2018-11-18 11:00:15 +05:30
|
|
|
/**
|
|
|
|
* Renders the Monitoring (Metrics) link in environments table.
|
|
|
|
*/
|
2018-12-05 23:21:45 +05:30
|
|
|
import { Button } from '@gitlab-org/gitlab-ui';
|
2018-11-18 11:00:15 +05:30
|
|
|
import Icon from '~/vue_shared/components/icon.vue';
|
|
|
|
import tooltip from '../../vue_shared/directives/tooltip';
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-18 11:00:15 +05:30
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Icon,
|
2018-12-05 23:21:45 +05:30
|
|
|
'gl-button': Button,
|
2018-11-18 11:00:15 +05:30
|
|
|
},
|
|
|
|
directives: {
|
|
|
|
tooltip,
|
|
|
|
},
|
|
|
|
props: {
|
|
|
|
monitoringUrl: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
2018-11-18 11:00:15 +05:30
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
title() {
|
|
|
|
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>
|
2018-12-05 23:21:45 +05:30
|
|
|
<gl-button
|
2017-09-10 17:25:29 +05:30
|
|
|
v-tooltip
|
2017-08-17 22:00:37 +05:30
|
|
|
:href="monitoringUrl"
|
|
|
|
:title="title"
|
2018-03-17 18:26:18 +05:30
|
|
|
:aria-label="title"
|
2018-12-05 23:21:45 +05:30
|
|
|
class="monitoring-url d-none d-sm-none d-md-block"
|
2018-11-08 19:23:39 +05:30
|
|
|
data-container="body"
|
|
|
|
rel="noopener noreferrer nofollow"
|
2018-12-05 23:21:45 +05:30
|
|
|
variant="default"
|
2018-03-17 18:26:18 +05:30
|
|
|
>
|
2018-11-18 11:00:15 +05:30
|
|
|
<icon name="chart" />
|
2018-12-05 23:21:45 +05:30
|
|
|
</gl-button>
|
2017-08-17 22:00:37 +05:30
|
|
|
</template>
|