Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

Modules get duplicated when try to localize modules #1162

Merged
merged 6 commits into from
Sep 18, 2019
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,14 @@ class PageLocalization extends Component {
}

onUpdateLocalization() {
const {props, state} = this;
const {Locales, Modules, Pages} = state;
const params = { Locales, Modules, Pages };
props.dispatch(LanguagesActions.updateTabLocalization(params, () => {
this.getLanguages();
}));
utils.confirm(Localization.get("UpdateLocalizationWarning"), Localization.get("Continue"), Localization.get("Cancel"), () => {
const {props, state} = this;
const {Locales, Modules, Pages} = state;
const params = { Locales, Modules, Pages };
props.dispatch(LanguagesActions.updateTabLocalization(params, () => {
this.getLanguages();
}));
});
}

renderPageLanguage(local, modules, page, isDefault=false) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@
<data name="Cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="Continue.Text" xml:space="preserve">
<value>Continue</value>
</data>
<data name="UpdateLocalizationWarning.Text" xml:space="preserve">
<value>Updating localization might take a few minutes depending on the number of modules. Please wait until the process finishes completely.</value>
</data>
<data name="DragPageTooltip.Text" xml:space="preserve">
<value>Drag Page into Location</value>
</data>
Expand Down