debian-mirror-gitlab/app/assets/javascripts/environments/components/environment_monitoring.vue
2021-11-18 22:05:49 +05:30

24 lines
505 B
Vue

<script>
import { GlDropdownItem } from '@gitlab/ui';
import { __ } from '~/locale';
/**
* Renders the Monitoring (Metrics) link in environments table.
*/
export default {
components: {
GlDropdownItem,
},
props: {
monitoringUrl: {
type: String,
required: true,
},
},
title: __('Monitoring'),
};
</script>
<template>
<gl-dropdown-item :href="monitoringUrl" rel="noopener noreferrer nofollow" target="_blank">
{{ $options.title }}
</gl-dropdown-item>
</template>