From 77595320a71dc5643ca1b896b777fb59c6cc4c45 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Thu, 15 Sep 2016 22:56:03 +0100 Subject: [PATCH] close the RoomSettings when you close Scalar --- src/components/views/rooms/RoomSettings.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index 3bb8f4dcf2..2b39ae3930 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -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); + } + }, }, ""); },