summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/components/environment_monitoring.vue
blob: 79c019b3491a7a5654424341ff2a1f1d335824ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<script>
/**
 * Renders the Monitoring (Metrics) link in environments table.
 */
export default {
  props: {
    monitoringUrl: {
      type: String,
      required: true,
    },
  },

  computed: {
    title() {
      return 'Monitoring';
    },
  },
};
</script>
<template>
  <a
    class="btn monitoring-url has-tooltip"
    data-container="body"
    rel="noopener noreferrer nofollow"
    :href="monitoringUrl"
    :title="title"
    :aria-label="title">
    <i
      class="fa fa-area-chart"
      aria-hidden="true" />
  </a>
</template>