upgrade.vue 568 Bytes
Newer Older
1 2
<script>
import { GlLink, GlSprintf } from '@gitlab/ui';
3
import { UPGRADE_CTA } from './constants';
4 5 6 7 8 9

export default {
  components: {
    GlLink,
    GlSprintf,
  },
10 11 12 13 14 15
  inject: {
    upgradePath: {
      from: 'upgradePath',
      default: '#',
    },
  },
16 17 18 19 20 21 22 23 24 25
  i18n: {
    UPGRADE_CTA,
  },
};
</script>

<template>
  <span>
    <gl-sprintf :message="$options.i18n.UPGRADE_CTA">
      <template #link="{ content }">
26
        <gl-link target="_blank" :href="upgradePath">
27 28 29 30 31 32
          {{ content }}
        </gl-link>
      </template>
    </gl-sprintf>
  </span>
</template>