gitlab-org--gitlab-foss/app/assets/javascripts/environments/components/environment_monitoring.vue

44 lines
787 B
Vue
Raw Normal View History

2017-04-20 07:48:54 -04:00
<script>
2018-01-06 13:59:49 -05:00
/**
* Renders the Monitoring (Metrics) link in environments table.
*/
import Icon from '~/vue_shared/components/icon.vue';
2018-01-06 13:59:49 -05:00
import tooltip from '../../vue_shared/directives/tooltip';
2018-01-06 13:59:49 -05:00
export default {
components: {
Icon,
},
2018-01-06 13:59:49 -05:00
directives: {
tooltip,
2017-04-20 07:48:54 -04:00
},
2018-01-06 13:59:49 -05:00
props: {
monitoringUrl: {
type: String,
required: true,
},
},
computed: {
title() {
return 'Monitoring';
},
2017-04-20 07:48:54 -04:00
},
2018-01-06 13:59:49 -05:00
};
2017-04-20 07:48:54 -04:00
</script>
<template>
<a
v-tooltip
2017-04-20 07:48:54 -04:00
:href="monitoringUrl"
:title="title"
2018-01-06 13:59:49 -05:00
:aria-label="title"
2018-06-11 05:49:47 -04:00
class="btn monitoring-url d-none d-sm-none d-md-block"
data-container="body"
rel="noopener noreferrer nofollow"
2018-01-06 13:59:49 -05:00
>
<icon
:size="12"
2018-06-11 05:49:47 -04:00
name="chart"
/>
2017-04-20 07:48:54 -04:00
</a>
</template>