mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
Show confirmation dialog on exit from UserEditor if we changed password or password confirmation fields #PL-6089
This commit is contained in:
parent
b461e236c7
commit
f576188c2c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user