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

43 lines
714 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 tooltip from '../../vue_shared/directives/tooltip';
2018-01-06 13:59:49 -05:00
export default {
directives: {
tooltip,
2017-04-20 07:48:54 -04:00
},
2018-01-06 13:59:49 -05:00
props: {
monitoringUrl: {
type: String,
required: true,
},
},
2018-01-06 13:59:49 -05:00
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
class="btn monitoring-url hidden-xs hidden-sm"
2017-04-20 07:48:54 -04:00
data-container="body"
rel="noopener noreferrer nofollow"
:href="monitoringUrl"
:title="title"
2018-01-06 13:59:49 -05:00
:aria-label="title"
>
2017-04-20 07:48:54 -04:00
<i
class="fa fa-area-chart"
2017-11-23 07:04:03 -05:00
aria-hidden="true"
2018-01-06 13:59:49 -05:00
>
</i>
2017-04-20 07:48:54 -04:00
</a>
</template>