diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index a7d60df3cd..7d331c7eea 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -388,6 +388,14 @@ module.exports = React.createClass({ }); }, + onManageIntegrations(ev) { + ev.preventDefault(); + var IntegrationsManager = sdk.getComponent("views.settings.IntegrationsManager"); + Modal.createDialog(IntegrationsManager, { + src: this.state.scalar_token ? this.getScalarInterfaceUrl() : null + }, ""); + }, + render: function() { // TODO: go through greying out things you don't have permission to change // (or turning them into informative stuff) @@ -565,7 +573,11 @@ module.exports = React.createClass({ var integrations_section; if (this.state.scalar_token) { - integrations_section = ; + integrations_section = ( +
+ Manage integrations +
+ ); } else { integrations_section = ; } @@ -658,6 +670,9 @@ module.exports = React.createClass({ +

Integrations

+ { integrations_section } + This room's internal ID is { this.props.room.roomId } - -

Integrations

- { integrations_section } ); }