BigW Consortium Gitlab

environment_external_url.vue 644 Bytes
Newer Older
1
<script>
2 3
import tooltip from '../../vue_shared/directives/tooltip';

4 5 6 7 8 9 10 11 12 13 14
/**
 * Renders the external url link in environments table.
 */
export default {
  props: {
    externalUrl: {
      type: String,
      required: true,
    },
  },

15 16 17 18
  directives: {
    tooltip,
  },

19 20 21 22 23 24 25 26 27
  computed: {
    title() {
      return 'Open';
    },
  },
};
</script>
<template>
  <a
28 29
    v-tooltip
    class="btn external-url"
30 31 32 33 34 35 36 37 38 39 40
    data-container="body"
    target="_blank"
    rel="noopener noreferrer nofollow"
    :title="title"
    :aria-label="title"
    :href="externalUrl">
    <i
      class="fa fa-external-link"
      aria-hidden="true" />
  </a>
</template>