2017-08-17 22:00:37 +05:30
|
|
|
<script>
|
2021-11-18 22:05:49 +05:30
|
|
|
import { GlDropdownItem } 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: {
|
2021-11-18 22:05:49 +05:30
|
|
|
GlDropdownItem,
|
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
|
|
|
},
|
2021-11-18 22:05:49 +05:30
|
|
|
title: __('Monitoring'),
|
2018-11-18 11:00:15 +05:30
|
|
|
};
|
2017-08-17 22:00:37 +05:30
|
|
|
</script>
|
|
|
|
<template>
|
2021-11-18 22:05:49 +05:30
|
|
|
<gl-dropdown-item :href="monitoringUrl" rel="noopener noreferrer nofollow" target="_blank">
|
|
|
|
{{ $options.title }}
|
|
|
|
</gl-dropdown-item>
|
2017-08-17 22:00:37 +05:30
|
|
|
</template>
|