Show confirmation dialog on exit from UserEditor if we changed password or password confirmation fields #PL-6089

This commit is contained in:
Gleb Gorelov 2015-10-08 08:39:24 +00:00
parent b461e236c7
commit f576188c2c

View File

@ -213,6 +213,7 @@ public class UserEditor extends AbstractEditor<User> {
} else {
passwField.setRequired(true);
}
passwField.addValueChangeListener(e -> ((DatasourceImplementation) userDs).setModified(true));
} else {
passwField.setVisible(false);
}
@ -233,6 +234,7 @@ public class UserEditor extends AbstractEditor<User> {
} else {
confirmPasswField.setRequired(true);
}
confirmPasswField.addValueChangeListener(e -> ((DatasourceImplementation) userDs).setModified(true));
} else {
confirmPasswField.setVisible(false);
}