summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/components/links_section.vue
blob: fb5ab12916eca222fd08f52ada81979fd8aec62e (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>
import { GlIcon, GlLink } from '@gitlab/ui';
import { mapGetters } from 'vuex';

export default {
  components: {
    GlIcon,
    GlLink,
  },
  computed: {
    ...mapGetters('monitoringDashboard', { links: 'linksWithMetadata' }),
  },
};
</script>
<template>
  <div
    ref="linksSection"
    class="gl-sm-display-flex gl-sm-flex-wrap gl-mt-5 gl-p-3 gl-bg-gray-10 border gl-rounded-base links-section"
  >
    <div
      v-for="(link, key) in links"
      :key="key"
      class="gl-mb-1 gl-mr-5 gl-display-flex gl-sm-display-block gl-hover-text-blue-600-children gl-word-break-all"
    >
      <gl-link :href="link.url" class="gl-text-gray-900 gl-text-decoration-none!"
        ><gl-icon name="link" class="gl-text-gray-500 gl-vertical-align-text-bottom gl-mr-2" />{{
          link.title
        }}
      </gl-link>
    </div>
  </div>
</template>