close the RoomSettings when you close Scalar

pull/21833/head
Matthew Hodgson 2016-09-15 22:56:03 +01:00
parent 3fcea1bfc7
commit 77595320a7
1 changed files with 6 additions and 4 deletions

View File

@ -412,13 +412,15 @@ module.exports = React.createClass({
onManageIntegrations(ev) {
ev.preventDefault();
var IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
if (this._calcSavePromises().length === 0) {
this.props.onCancelClick(ev);
}
Modal.createDialog(IntegrationsManager, {
src: this.scalarClient.hasCredentials() ?
this.scalarClient.getScalarInterfaceUrlForRoom(this.props.room.roomId) :
null
null,
onFinished: ()=>{
if (this._calcSavePromises().length === 0) {
this.props.onCancelClick(ev);
}
},
}, "");
},