forked from matrix/element-web
Dispatch password_changed when SetPasswordDialog finished
This commit is contained in:
parent
e367fb5a98
commit
48856c31f8
|
@ -25,7 +25,10 @@ export default React.createClass({
|
||||||
const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog');
|
const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog');
|
||||||
Modal.createDialog(SetPasswordDialog, {
|
Modal.createDialog(SetPasswordDialog, {
|
||||||
onFinished: () => {
|
onFinished: () => {
|
||||||
//TODO: Notify SessionStore of changed password: dispatch password_changed
|
// Notify SessionStore that the user's password was changed
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'password_changed',
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue