Dispatch password_changed when SetPasswordDialog finished

This commit is contained in:
Luke Barnard 2017-05-16 13:48:56 +01:00
parent e367fb5a98
commit 48856c31f8

View file

@ -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',
});
} }
}); });
}, },