close the RoomSettings when you close Scalar
parent
3fcea1bfc7
commit
77595320a7
|
@ -412,13 +412,15 @@ module.exports = React.createClass({
|
||||||
onManageIntegrations(ev) {
|
onManageIntegrations(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
var IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
|
var IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
|
||||||
if (this._calcSavePromises().length === 0) {
|
|
||||||
this.props.onCancelClick(ev);
|
|
||||||
}
|
|
||||||
Modal.createDialog(IntegrationsManager, {
|
Modal.createDialog(IntegrationsManager, {
|
||||||
src: this.scalarClient.hasCredentials() ?
|
src: this.scalarClient.hasCredentials() ?
|
||||||
this.scalarClient.getScalarInterfaceUrlForRoom(this.props.room.roomId) :
|
this.scalarClient.getScalarInterfaceUrlForRoom(this.props.room.roomId) :
|
||||||
null
|
null,
|
||||||
|
onFinished: ()=>{
|
||||||
|
if (this._calcSavePromises().length === 0) {
|
||||||
|
this.props.onCancelClick(ev);
|
||||||
|
}
|
||||||
|
},
|
||||||
}, "");
|
}, "");
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue