debian-mirror-gitlab/app/assets/javascripts/security_configuration/components/upgrade.vue

33 lines
577 B
Vue
Raw Normal View History

2021-03-11 19:13:27 +05:30
<script>
import { GlLink, GlSprintf } from '@gitlab/ui';
2021-04-17 20:07:23 +05:30
import { UPGRADE_CTA } from './scanners_constants';
2021-03-11 19:13:27 +05:30
export default {
components: {
GlLink,
GlSprintf,
},
2021-04-17 20:07:23 +05:30
inject: {
upgradePath: {
from: 'upgradePath',
default: '#',
},
},
2021-03-11 19:13:27 +05:30
i18n: {
UPGRADE_CTA,
},
};
</script>
<template>
<span>
<gl-sprintf :message="$options.i18n.UPGRADE_CTA">
<template #link="{ content }">
2021-04-17 20:07:23 +05:30
<gl-link target="_blank" :href="upgradePath">
2021-03-11 19:13:27 +05:30
{{ content }}
</gl-link>
</template>
</gl-sprintf>
</span>
</template>