Adjust documentation paths

- source
- test

Changelog: fixed
parent c6e8bde2
...@@ -162,6 +162,9 @@ export const IMAGE_STATUS_ALERT_TYPE = { ...@@ -162,6 +162,9 @@ export const IMAGE_STATUS_ALERT_TYPE = {
[DELETE_FAILED]: 'warning', [DELETE_FAILED]: 'warning',
}; };
export const PACKAGE_DELETE_HELP_PAGE_PATH = helpPagePath('user/packages/container_registry', { export const PACKAGE_DELETE_HELP_PAGE_PATH = helpPagePath(
anchor: 'delete-images', 'user/packages/container_registry/index',
}); {
anchor: 'delete-images',
},
);
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
<partial-cleanup-alert <partial-cleanup-alert
v-if="showPartialCleanupWarning" v-if="showPartialCleanupWarning"
:run-cleanup-policies-help-page-path="config.runCleanupPoliciesHelpPagePath" :run-cleanup-policies-help-page-path="config.runCleanupPoliciesHelpPagePath"
:cleanup-policies-help-page-path="config.cleanupPoliciesHelpPagePath" :cleanup-policies-help-page-path="config.expirationPolicyHelpPagePath"
@dismiss="dismissPartialCleanupWarning" @dismiss="dismissPartialCleanupWarning"
/> />
......
...@@ -335,7 +335,7 @@ describe('Details Page', () => { ...@@ -335,7 +335,7 @@ describe('Details Page', () => {
describe('Partial Cleanup Alert', () => { describe('Partial Cleanup Alert', () => {
const config = { const config = {
runCleanupPoliciesHelpPagePath: 'foo', runCleanupPoliciesHelpPagePath: 'foo',
cleanupPoliciesHelpPagePath: 'bar', expirationPolicyHelpPagePath: 'bar',
userCalloutsPath: 'call_out_path', userCalloutsPath: 'call_out_path',
userCalloutId: 'call_out_id', userCalloutId: 'call_out_id',
showUnfinishedTagCleanupCallout: true, showUnfinishedTagCleanupCallout: true,
...@@ -367,7 +367,7 @@ describe('Details Page', () => { ...@@ -367,7 +367,7 @@ describe('Details Page', () => {
expect(findPartialCleanupAlert().props()).toEqual({ expect(findPartialCleanupAlert().props()).toEqual({
runCleanupPoliciesHelpPagePath: config.runCleanupPoliciesHelpPagePath, runCleanupPoliciesHelpPagePath: config.runCleanupPoliciesHelpPagePath,
cleanupPoliciesHelpPagePath: config.cleanupPoliciesHelpPagePath, cleanupPoliciesHelpPagePath: config.expirationPolicyHelpPagePath,
}); });
}); });
......
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