diff options
Diffstat (limited to 'app/assets/javascripts/monitoring/components/links_section.vue')
-rw-r--r-- | app/assets/javascripts/monitoring/components/links_section.vue | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/assets/javascripts/monitoring/components/links_section.vue b/app/assets/javascripts/monitoring/components/links_section.vue new file mode 100644 index 00000000000..98b07d17694 --- /dev/null +++ b/app/assets/javascripts/monitoring/components/links_section.vue @@ -0,0 +1,32 @@ +<script> +import { mapGetters } from 'vuex'; +import { GlIcon, GlLink } from '@gitlab/ui'; + +export default { + components: { + GlIcon, + GlLink, + }, + computed: { + ...mapGetters('monitoringDashboard', { links: 'linksWithMetadata' }), + }, +}; +</script> +<template> + <div + ref="linksSection" + class="gl-display-sm-flex gl-flex-sm-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-display-sm-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-700 gl-vertical-align-text-bottom gl-mr-2" />{{ + link.title + }} + </gl-link> + </div> + </div> +</template> |