Commit aef76ab0 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch...

Merge branch '10091-move-ee-differences-for-app-assets-javascripts-pages-milestones-shared-components-promote_milestone_modal-vue' into 'master'

Resolve "Move EE differences for `app/assets/javascripts/pages/milestones/shared/components/promote_milestone_modal.vue`"

Closes #10091

See merge request gitlab-org/gitlab-ee!12299
parents 3bff3dc3 dc9702e8
...@@ -31,26 +31,10 @@ export default { ...@@ -31,26 +31,10 @@ export default {
}); });
}, },
text() { text() {
const milestonePromotion = sprintf(
s__(`Milestones|Promoting %{milestone} will make it available for all projects inside %{groupName}.
Existing project milestones with the same name will be merged. `),
{
milestone: this.milestoneTitle,
groupName: this.groupName,
},
);
const finalWarning = s__('Milestones|This action cannot be reversed.');
return sprintf( return sprintf(
s__( s__(`Milestones|Promoting %{milestoneTitle} will make it available for all projects inside %{groupName}.
`Milestones|<p>%{milestonePromotion}</p> Existing project milestones with the same title will be merged.`),
%{finalWarning}`, { milestoneTitle: this.milestoneTitle, groupName: this.groupName },
),
{
milestonePromotion,
finalWarning,
},
false,
); );
}, },
}, },
...@@ -87,6 +71,9 @@ export default { ...@@ -87,6 +71,9 @@ export default {
<template slot="title"> <template slot="title">
{{ title }} {{ title }}
</template> </template>
<div v-html="text"></div> <div>
<p>{{ text }}</p>
<p>{{ s__('Milestones|This action cannot be reversed.') }}</p>
</div>
</gl-modal> </gl-modal>
</template> </template>
...@@ -8001,9 +8001,6 @@ msgstr "" ...@@ -8001,9 +8001,6 @@ msgstr ""
msgid "Milestones| You’re about to permanently delete the milestone %{milestoneTitle}. This milestone is not currently used in any issues or merge requests." msgid "Milestones| You’re about to permanently delete the milestone %{milestoneTitle}. This milestone is not currently used in any issues or merge requests."
msgstr "" msgstr ""
msgid "Milestones|<p>%{milestonePromotion}</p> %{finalWarning}"
msgstr ""
msgid "Milestones|Delete milestone" msgid "Milestones|Delete milestone"
msgstr "" msgstr ""
...@@ -8022,7 +8019,7 @@ msgstr "" ...@@ -8022,7 +8019,7 @@ msgstr ""
msgid "Milestones|Promote Milestone" msgid "Milestones|Promote Milestone"
msgstr "" msgstr ""
msgid "Milestones|Promoting %{milestone} will make it available for all projects inside %{groupName}. Existing project milestones with the same name will be merged. " msgid "Milestones|Promoting %{milestoneTitle} will make it available for all projects inside %{groupName}. Existing project milestones with the same title will be merged."
msgstr "" msgstr ""
msgid "Milestones|This action cannot be reversed." msgid "Milestones|This action cannot be reversed."
......
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