Fix formatting issues

parent 6a5952c4
<script> <script>
import {s__} from '~/locale';
import { GlAlert, GlSprintf, GlLink } from '@gitlab/ui'; import { GlAlert, GlSprintf, GlLink } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper'; import { helpPagePath } from '~/helpers/help_page_helper';
import { s__ } from '~/locale';
export default { export default {
components: { components: {
...@@ -17,9 +17,9 @@ export default { ...@@ -17,9 +17,9 @@ export default {
title: s__('DastProfiles|You cannot run an active scan against an unvalidated site.'), title: s__('DastProfiles|You cannot run an active scan against an unvalidated site.'),
primaryButtonText: s__('DastProfiles|Manage site profiles'), primaryButtonText: s__('DastProfiles|Manage site profiles'),
message: s__( message: s__(
'DastProfiles|You can either choose a passive scan or validate the target site from the site profile management page. %{docsLinkStart}Learn more about site validation.%{docsLinkEnd}', 'DastProfiles|You can either choose a passive scan or validate the target site from the site profile management page. %{docsLinkStart}Learn more about site validation.%{docsLinkEnd}',
) ),
} },
}; };
</script> </script>
...@@ -31,9 +31,7 @@ export default { ...@@ -31,9 +31,7 @@ export default {
:primary-button-link="siteProfilesLibraryPath" :primary-button-link="siteProfilesLibraryPath"
variant="danger" variant="danger"
> >
<gl-sprintf <gl-sprintf :message="$options.i18n.message">
:message="$options.i18n.message"
>
<template #docsLink="{ content }"> <template #docsLink="{ content }">
<gl-link :href="$options.dastSiteValidationDocsPath">{{ content }}</gl-link> <gl-link :href="$options.dastSiteValidationDocsPath">{{ content }}</gl-link>
</template> </template>
......
...@@ -11,8 +11,8 @@ describe('ProfileConflictAlert', () => { ...@@ -11,8 +11,8 @@ describe('ProfileConflictAlert', () => {
GlSprintf, GlSprintf,
}, },
provide: { provide: {
siteProfilesLibraryPath: '/dast_scans#site-profiles' siteProfilesLibraryPath: '/dast_scans#site-profiles',
} },
}); });
}; };
......
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