summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/environments/components/environment_monitoring.js
blob: 064e2fc7434bf9d70f1ed8d43a06aa7c0647b000 (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
/**
 * Renders the Monitoring (Metrics) link in environments table.
 */
export default {
  props: {
    monitoringUrl: {
      type: String,
      default: '',
      required: true,
    },
  },

  computed: {
    title() {
      return 'Monitoring';
    },
  },

  template: `
    <a
      class="btn monitoring-url has-tooltip"
      data-container="body"
      :href="monitoringUrl"
      target="_blank"
      rel="noopener noreferrer nofollow"
      :title="title"
      :aria-label="title">
      <i class="fa fa-area-chart" aria-hidden="true"></i>
    </a>
  `,
};