Commit a059de34 authored by Tom Quirk's avatar Tom Quirk Committed by Mark Florian

Use helpPagePath in design reply form

parent 7ef23713
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import { GlButton, GlModal } from '@gitlab/ui'; import { GlButton, GlModal } from '@gitlab/ui';
import MarkdownField from '~/vue_shared/components/markdown/field.vue'; import MarkdownField from '~/vue_shared/components/markdown/field.vue';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { helpPagePath } from '~/lib/utils/help_page_utility';
export default { export default {
name: 'DesignReplyForm', name: 'DesignReplyForm',
...@@ -79,6 +80,9 @@ export default { ...@@ -79,6 +80,9 @@ export default {
this.$refs.textarea.focus(); this.$refs.textarea.focus();
}, },
}, },
helpLinks: {
markdownDocsPath: helpPagePath('user/markdown'),
},
}; };
</script> </script>
...@@ -89,7 +93,7 @@ export default { ...@@ -89,7 +93,7 @@ export default {
:can-attach-file="false" :can-attach-file="false"
:enable-autocomplete="true" :enable-autocomplete="true"
:textarea-value="value" :textarea-value="value"
markdown-docs-path="/help/user/markdown" :markdown-docs-path="$options.helpLinks.markdownDocsPath"
class="bordered-box" class="bordered-box"
> >
<template #textarea> <template #textarea>
......
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