Commit 982865d9 authored by Angelo Gulina's avatar Angelo Gulina

Update link to blog post

parent 1a321d99
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import { GlBanner, GlLink, GlSprintf } from '@gitlab/ui'; import { GlBanner, GlLink, GlSprintf } from '@gitlab/ui';
import { import {
activateCloudLicense, activateCloudLicense,
subscriptionBannerBlogPostUrl,
subscriptionBannerText, subscriptionBannerText,
subscriptionBannerTitle, subscriptionBannerTitle,
} from '../constants'; } from '../constants';
...@@ -11,6 +12,7 @@ export const CLOSE_ACTIVATE_SUBSCRIPTION_BANNER_EVENT = 'close'; ...@@ -11,6 +12,7 @@ export const CLOSE_ACTIVATE_SUBSCRIPTION_BANNER_EVENT = 'close';
export default { export default {
name: 'SubscriptionActivationBanner', name: 'SubscriptionActivationBanner',
subscriptionBannerBlogPostUrl,
i18n: { i18n: {
bannerText: subscriptionBannerText, bannerText: subscriptionBannerText,
buttonText: activateCloudLicense, buttonText: activateCloudLicense,
...@@ -45,7 +47,9 @@ export default { ...@@ -45,7 +47,9 @@ export default {
<p> <p>
<gl-sprintf :message="$options.i18n.bannerText"> <gl-sprintf :message="$options.i18n.bannerText">
<template #blogPostLink="{ content }"> <template #blogPostLink="{ content }">
<gl-link href="#" target="_blank">{{ content }}</gl-link> <gl-link :href="$options.subscriptionBannerBlogPostUrl" target="_blank">{{
content
}}</gl-link>
</template> </template>
<template #portalLink="{ content }"> <template #portalLink="{ content }">
<gl-link :href="customersPortalUrl" target="_blank">{{ content }}</gl-link> <gl-link :href="customersPortalUrl" target="_blank">{{ content }}</gl-link>
......
...@@ -142,3 +142,5 @@ export const subscriptionBannerTitle = s__('SuperSonics|Cloud licensing'); ...@@ -142,3 +142,5 @@ export const subscriptionBannerTitle = s__('SuperSonics|Cloud licensing');
export const subscriptionBannerText = s__( export const subscriptionBannerText = s__(
"SuperSonics|Cloud licensing is now available. It's an easier way to activate instances and manage subscriptions. Read more about it in our %{blogPostLinkStart}blog post%{blogPostLinkEnd}. Activation codes are available in the %{portalLinkStart}Customers Portal%{portalLinkEnd}.", "SuperSonics|Cloud licensing is now available. It's an easier way to activate instances and manage subscriptions. Read more about it in our %{blogPostLinkStart}blog post%{blogPostLinkEnd}. Activation codes are available in the %{portalLinkStart}Customers Portal%{portalLinkEnd}.",
); );
export const subscriptionBannerBlogPostUrl =
'https://about.gitlab.com/blog/2021/07/20/improved-billing-and-subscription-management/';
...@@ -6,6 +6,7 @@ import SubscriptionActivationBanner, { ...@@ -6,6 +6,7 @@ import SubscriptionActivationBanner, {
} from 'ee/admin/subscriptions/show/components/subscription_activation_banner.vue'; } from 'ee/admin/subscriptions/show/components/subscription_activation_banner.vue';
import { import {
activateCloudLicense, activateCloudLicense,
subscriptionBannerBlogPostUrl,
subscriptionBannerText, subscriptionBannerText,
subscriptionBannerTitle, subscriptionBannerTitle,
} from 'ee/admin/subscriptions/show/constants'; } from 'ee/admin/subscriptions/show/constants';
...@@ -51,7 +52,7 @@ describe('SubscriptionActivationBanner', () => { ...@@ -51,7 +52,7 @@ describe('SubscriptionActivationBanner', () => {
}); });
it('contains a link to the blog post', () => { it('contains a link to the blog post', () => {
expect(findLink(0).attributes('href')).toBe('#'); expect(findLink(0).attributes('href')).toBe(subscriptionBannerBlogPostUrl);
}); });
it('contains a link to the customers portal', () => { it('contains a link to the customers portal', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment