RC1 of confirmation dialogs displayed when one navigates from a page with unsaved changes.

Fixes in Share and UserShare.
This commit is contained in:
Tomas Bures 2019-05-12 10:00:10 +02:00
parent c4b78c4823
commit e064948838
6 changed files with 172 additions and 109 deletions

View file

@ -1099,9 +1099,8 @@ const withForm = createComponentMixin([], [], (TargetClass, InnerClass) => {
data.originalHash = data.hash;
delete data.hash;
const mutator = this.getFormValuesMutator;
if (mutator) {
mutator(data);
if (this.getFormValuesMutator) {
this.getFormValuesMutator(data);
}
this.populateFormValues(data);
@ -1126,9 +1125,8 @@ const withForm = createComponentMixin([], [], (TargetClass, InnerClass) => {
data.originalHash = data.hash;
delete data.hash;
const mutator = this.getFormValuesMutator;
if (mutator) {
const newData = mutator(data);
if (this.getFormValuesMutator) {
const newData = this.getFormValuesMutator(data);
if (newData !== undefined) {
data = newData;
@ -1157,9 +1155,8 @@ const withForm = createComponentMixin([], [], (TargetClass, InnerClass) => {
let data = this.getFormValues();
const mutator = this.submitFormValuesMutator;
if (mutator) {
const newData = mutator(data);
if (this.submitFormValuesMutator) {
const newData = this.submitFormValuesMutator(data);
if (newData !== undefined) {
data = newData;
}