Welcome to mirror list, hosted at ThFree Co, Russian Federation.

integrations_help_text.vue « components « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4939b5aa98c4795b49542a39a941b2fa5aca169e (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
33
34
35
<script>
import { GlIcon, GlLink, GlSprintf } from '@gitlab/ui';

export default {
  name: 'IntegrationsHelpText',
  components: {
    GlIcon,
    GlLink,
    GlSprintf,
  },
  props: {
    message: {
      type: String,
      required: true,
    },
    messageUrl: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <span>
    <gl-sprintf :message="message">
      <template #link="{ content }">
        <gl-link :href="messageUrl" target="_blank">
          {{ content }}
          <gl-icon name="external-link" class="gl-vertical-align-middle" :size="12" />
        </gl-link>
      </template>
    </gl-sprintf>
  </span>
</template>