Commit 084157b0 authored by Brandon Labuschagne's avatar Brandon Labuschagne

Merge branch '296640-update-invite-modal-text' into 'master'

Change from all caps to bold for project/group name

See merge request gitlab-org/gitlab!55903
parents a99e7685 2cf5920f
...@@ -76,7 +76,7 @@ export default { ...@@ -76,7 +76,7 @@ export default {
const inviteTo = this.isProject ? 'toProject' : 'toGroup'; const inviteTo = this.isProject ? 'toProject' : 'toGroup';
return sprintf(this.$options.labels[this.inviteeType][inviteTo].introText, { return sprintf(this.$options.labels[this.inviteeType][inviteTo].introText, {
name: this.name.toUpperCase(), name: this.name,
}); });
}, },
toastOptions() { toastOptions() {
...@@ -215,10 +215,14 @@ export default { ...@@ -215,10 +215,14 @@ export default {
searchField: s__('InviteMembersModal|GitLab member or Email address'), searchField: s__('InviteMembersModal|GitLab member or Email address'),
placeHolder: s__('InviteMembersModal|Search for members to invite'), placeHolder: s__('InviteMembersModal|Search for members to invite'),
toGroup: { toGroup: {
introText: s__("InviteMembersModal|You're inviting members to the %{name} group"), introText: s__(
"InviteMembersModal|You're inviting members to the %{strongStart}%{name}%{strongEnd} group.",
),
}, },
toProject: { toProject: {
introText: s__("InviteMembersModal|You're inviting members to the %{name} project"), introText: s__(
"InviteMembersModal|You're inviting members to the %{strongStart}%{name}%{strongEnd} project.",
),
}, },
}, },
group: { group: {
...@@ -226,10 +230,14 @@ export default { ...@@ -226,10 +230,14 @@ export default {
searchField: s__('InviteMembersModal|Select a group to invite'), searchField: s__('InviteMembersModal|Select a group to invite'),
placeHolder: s__('InviteMembersModal|Search for a group to invite'), placeHolder: s__('InviteMembersModal|Search for a group to invite'),
toGroup: { toGroup: {
introText: s__("InviteMembersModal|You're inviting a group to the %{name} group"), introText: s__(
"InviteMembersModal|You're inviting a group to the %{strongStart}%{name}%{strongEnd} group.",
),
}, },
toProject: { toProject: {
introText: s__("InviteMembersModal|You're inviting a group to the %{name} project"), introText: s__(
"InviteMembersModal|You're inviting a group to the %{strongStart}%{name}%{strongEnd} project.",
),
}, },
}, },
accessLevel: s__('InviteMembersModal|Choose a role permission'), accessLevel: s__('InviteMembersModal|Choose a role permission'),
...@@ -253,7 +261,13 @@ export default { ...@@ -253,7 +261,13 @@ export default {
:header-close-label="$options.labels.headerCloseLabel" :header-close-label="$options.labels.headerCloseLabel"
> >
<div> <div>
<p ref="introText">{{ introText }}</p> <p ref="introText">
<gl-sprintf :message="introText">
<template #strong="{ content }">
<strong>{{ content }}</strong>
</template>
</gl-sprintf>
</p>
<label :id="$options.membersTokenSelectLabelId" class="gl-font-weight-bold gl-mt-5">{{ <label :id="$options.membersTokenSelectLabelId" class="gl-font-weight-bold gl-mt-5">{{
$options.labels[inviteeType].searchField $options.labels[inviteeType].searchField
......
...@@ -16681,16 +16681,16 @@ msgstr "" ...@@ -16681,16 +16681,16 @@ msgstr ""
msgid "InviteMembersModal|Some of the members could not be added" msgid "InviteMembersModal|Some of the members could not be added"
msgstr "" msgstr ""
msgid "InviteMembersModal|You're inviting a group to the %{name} group" msgid "InviteMembersModal|You're inviting a group to the %{strongStart}%{name}%{strongEnd} group."
msgstr "" msgstr ""
msgid "InviteMembersModal|You're inviting a group to the %{name} project" msgid "InviteMembersModal|You're inviting a group to the %{strongStart}%{name}%{strongEnd} project."
msgstr "" msgstr ""
msgid "InviteMembersModal|You're inviting members to the %{name} group" msgid "InviteMembersModal|You're inviting members to the %{strongStart}%{name}%{strongEnd} group."
msgstr "" msgstr ""
msgid "InviteMembersModal|You're inviting members to the %{name} project" msgid "InviteMembersModal|You're inviting members to the %{strongStart}%{name}%{strongEnd} project."
msgstr "" msgstr ""
msgid "InviteMembers|Invite a group" msgid "InviteMembers|Invite a group"
......
...@@ -129,7 +129,7 @@ describe('InviteMembersModal', () => { ...@@ -129,7 +129,7 @@ describe('InviteMembersModal', () => {
it('includes the correct invitee, type, and formatted name', () => { it('includes the correct invitee, type, and formatted name', () => {
wrapper = createInviteMembersToProjectWrapper(); wrapper = createInviteMembersToProjectWrapper();
expect(findIntroText()).toBe("You're inviting members to the TEST NAME project"); expect(findIntroText()).toBe("You're inviting members to the test name project.");
}); });
}); });
...@@ -137,7 +137,7 @@ describe('InviteMembersModal', () => { ...@@ -137,7 +137,7 @@ describe('InviteMembersModal', () => {
it('includes the correct invitee, type, and formatted name', () => { it('includes the correct invitee, type, and formatted name', () => {
wrapper = createInviteGroupToProjectWrapper(); wrapper = createInviteGroupToProjectWrapper();
expect(findIntroText()).toBe("You're inviting a group to the TEST NAME project"); expect(findIntroText()).toBe("You're inviting a group to the test name project.");
}); });
}); });
}); });
...@@ -147,7 +147,7 @@ describe('InviteMembersModal', () => { ...@@ -147,7 +147,7 @@ describe('InviteMembersModal', () => {
it('includes the correct invitee, type, and formatted name', () => { it('includes the correct invitee, type, and formatted name', () => {
wrapper = createInviteMembersToGroupWrapper(); wrapper = createInviteMembersToGroupWrapper();
expect(wrapper.html()).toContain("You're inviting members to the TEST NAME group"); expect(findIntroText()).toBe("You're inviting members to the test name group.");
}); });
}); });
...@@ -155,7 +155,7 @@ describe('InviteMembersModal', () => { ...@@ -155,7 +155,7 @@ describe('InviteMembersModal', () => {
it('includes the correct invitee, type, and formatted name', () => { it('includes the correct invitee, type, and formatted name', () => {
wrapper = createInviteGroupToGroupWrapper(); wrapper = createInviteGroupToGroupWrapper();
expect(wrapper.html()).toContain("You're inviting a group to the TEST NAME group"); expect(findIntroText()).toBe("You're inviting a group to the test name group.");
}); });
}); });
}); });
......
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