Commit ed5eeeff authored by Simon Knox's avatar Simon Knox

Merge branch 'issue_333805_improve_text_guidance_on_inputs' into 'master'

Improve service desk service settings inputs tips

See merge request gitlab-org/gitlab!73864
parents c836dd98 d8cbdf7c
<script> <script>
import { GlButton, GlToggle, GlLoadingIcon, GlSprintf, GlFormInput, GlLink } from '@gitlab/ui'; import { GlButton, GlToggle, GlLoadingIcon, GlSprintf, GlFormInput, GlLink } from '@gitlab/ui';
import { helpPagePath } from '~/helpers/help_page_helper';
import { __ } from '~/locale'; import { __ } from '~/locale';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import ServiceDeskTemplateDropdown from './service_desk_template_dropdown.vue'; import ServiceDeskTemplateDropdown from './service_desk_template_dropdown.vue';
...@@ -88,6 +89,16 @@ export default { ...@@ -88,6 +89,16 @@ export default {
hasCustomEmail() { hasCustomEmail() {
return this.customEmail && this.customEmail !== this.incomingEmail; return this.customEmail && this.customEmail !== this.incomingEmail;
}, },
emailSuffixHelpUrl() {
return helpPagePath('user/project/service_desk.html', {
anchor: 'configuring-a-custom-email-address-suffix',
});
},
customEmailAddressHelpUrl() {
return helpPagePath('user/project/service_desk.html', {
anchor: 'using-a-custom-email-address',
});
},
}, },
methods: { methods: {
onCheckboxToggle(isChecked) { onCheckboxToggle(isChecked) {
...@@ -170,7 +181,7 @@ export default { ...@@ -170,7 +181,7 @@ export default {
</template> </template>
<label for="service-desk-project-suffix" class="mt-3"> <label for="service-desk-project-suffix" class="mt-3">
{{ __('Project name suffix') }} {{ __('Email address suffix') }}
</label> </label>
<gl-form-input <gl-form-input
v-if="hasProjectKeySupport" v-if="hasProjectKeySupport"
...@@ -189,7 +200,20 @@ export default { ...@@ -189,7 +200,20 @@ export default {
class="form-text text-muted" class="form-text text-muted"
:class="{ 'gl-mt-2!': hasProjectKeySupport && projectKeyError }" :class="{ 'gl-mt-2!': hasProjectKeySupport && projectKeyError }"
> >
{{ __('A string appended to the project path to form the Service Desk email address.') }} <gl-sprintf
:message="
__('Add a suffix to Service Desk email address. %{linkStart}Learn more.%{linkEnd}')
"
>
<template #link="{ content }">
<gl-link
:href="emailSuffixHelpUrl"
target="_blank"
class="gl-text-blue-600 font-size-inherit"
>{{ content }}
</gl-link>
</template>
</gl-sprintf>
</span> </span>
<span v-else class="form-text text-muted"> <span v-else class="form-text text-muted">
<gl-sprintf <gl-sprintf
...@@ -201,7 +225,7 @@ export default { ...@@ -201,7 +225,7 @@ export default {
> >
<template #link="{ content }"> <template #link="{ content }">
<gl-link <gl-link
href="https://docs.gitlab.com/ee/user/project/service_desk.html#using-a-custom-email-address" :href="customEmailAddressHelpUrl"
target="_blank" target="_blank"
class="gl-text-blue-600 font-size-inherit" class="gl-text-blue-600 font-size-inherit"
>{{ content }} >{{ content }}
......
...@@ -274,7 +274,7 @@ When configured, the custom suffix creates a new Service Desk email address, con ...@@ -274,7 +274,7 @@ When configured, the custom suffix creates a new Service Desk email address, con
For example, suppose the `mygroup/myproject` project Service Desk settings has the following configured: For example, suppose the `mygroup/myproject` project Service Desk settings has the following configured:
- Project name suffix is set to `support`. - Email address suffix is set to `support`.
- Service Desk email address is configured to `contact+%{key}@example.com`. - Service Desk email address is configured to `contact+%{key}@example.com`.
The Service Desk email address for this project is: `contact+mygroup-myproject-support@example.com`. The Service Desk email address for this project is: `contact+mygroup-myproject-support@example.com`.
......
...@@ -1536,9 +1536,6 @@ msgstr "" ...@@ -1536,9 +1536,6 @@ msgstr ""
msgid "A sign-in to your account has been made from the following IP address: %{ip}" msgid "A sign-in to your account has been made from the following IP address: %{ip}"
msgstr "" msgstr ""
msgid "A string appended to the project path to form the Service Desk email address."
msgstr ""
msgid "A title is required" msgid "A title is required"
msgstr "" msgstr ""
...@@ -1971,6 +1968,9 @@ msgstr "" ...@@ -1971,6 +1968,9 @@ msgstr ""
msgid "Add a related issue" msgid "Add a related issue"
msgstr "" msgstr ""
msgid "Add a suffix to Service Desk email address. %{linkStart}Learn more.%{linkEnd}"
msgstr ""
msgid "Add a table" msgid "Add a table"
msgstr "" msgstr ""
...@@ -12690,6 +12690,9 @@ msgstr "" ...@@ -12690,6 +12690,9 @@ msgstr ""
msgid "Email a new %{name} to this project" msgid "Email a new %{name} to this project"
msgstr "" msgstr ""
msgid "Email address suffix"
msgstr ""
msgid "Email address to use for Support Desk" msgid "Email address to use for Support Desk"
msgstr "" msgstr ""
...@@ -26928,9 +26931,6 @@ msgstr "" ...@@ -26928,9 +26931,6 @@ msgstr ""
msgid "Project name" msgid "Project name"
msgstr "" msgstr ""
msgid "Project name suffix"
msgstr ""
msgid "Project navigation" msgid "Project navigation"
msgstr "" msgstr ""
......
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