Pass roomId rather than whole room object.

pull/21833/head
Richard Lewis 2017-08-17 12:15:01 +01:00
parent eb77dcc8e3
commit d1ee257b5a
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ export default class ManageIntegsButton extends React.Component {
const IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager");
Modal.createDialog(IntegrationsManager, {
src: (this.scalarClient !== null && this.scalarClient.hasCredentials()) ?
this.scalarClient.getScalarInterfaceUrlForRoom(this.props.room.roomId) :
this.scalarClient.getScalarInterfaceUrlForRoom(this.props.roomId) :
null,
onFinished: ()=>{
if (this.props.onCancelClick) {
@ -118,7 +118,7 @@ export default class ManageIntegsButton extends React.Component {
}
ManageIntegsButton.propTypes = {
room: PropTypes.object.isRequired,
roomId: PropTypes.string.isRequired,
onCancelClick: PropTypes.func,
};

View File

@ -330,7 +330,7 @@ module.exports = React.createClass({
{ settingsButton }
<ManageIntegsButton
onCancelClick={this.props.onCancelClick}
room={this.props.room}
roomId={this.props.room.roomId}
/>
{ forgetButton }
{ searchButton }