2021-02-11 10:09:11 -05:00
|
|
|
<script>
|
|
|
|
import { GlLink, GlSprintf } from '@gitlab/ui';
|
2021-03-09 13:09:41 -05:00
|
|
|
import { UPGRADE_CTA } from './scanners_constants';
|
2021-02-11 10:09:11 -05:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
GlLink,
|
|
|
|
GlSprintf,
|
|
|
|
},
|
2021-02-22 10:10:48 -05:00
|
|
|
inject: {
|
|
|
|
upgradePath: {
|
|
|
|
from: 'upgradePath',
|
|
|
|
default: '#',
|
|
|
|
},
|
|
|
|
},
|
2021-02-11 10:09:11 -05:00
|
|
|
i18n: {
|
|
|
|
UPGRADE_CTA,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<span>
|
|
|
|
<gl-sprintf :message="$options.i18n.UPGRADE_CTA">
|
|
|
|
<template #link="{ content }">
|
2021-02-22 10:10:48 -05:00
|
|
|
<gl-link target="_blank" :href="upgradePath">
|
2021-02-11 10:09:11 -05:00
|
|
|
{{ content }}
|
|
|
|
</gl-link>
|
|
|
|
</template>
|
|
|
|
</gl-sprintf>
|
|
|
|
</span>
|
|
|
|
</template>
|