From 18ea76b864ad641057884be0922a5a98343b9089 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Tue, 27 Jun 2017 11:31:00 +0100 Subject: [PATCH] Removed commented code --- src/components/views/rooms/AppsDrawer.js | 66 ------------------------ 1 file changed, 66 deletions(-) diff --git a/src/components/views/rooms/AppsDrawer.js b/src/components/views/rooms/AppsDrawer.js index fbff785ba4..ca56391cc3 100644 --- a/src/components/views/rooms/AppsDrawer.js +++ b/src/components/views/rooms/AppsDrawer.js @@ -135,72 +135,6 @@ module.exports = React.createClass({ }, onClickAddWidget: function(e) { - // Modal.createDialog(AddAppDialog, { - // onFinished: (proceed, type, value) => { - // if (!proceed || !type) return; - // if (type === 'custom' && !value) return; - // - // const appsStateEvents = this.props.room.currentState.getStateEvents('im.vector.modular.widgets', ''); - // let appsStateEvent = {}; - // if (appsStateEvents) { - // appsStateEvent = appsStateEvents.getContent(); - // } - // - // if (appsStateEvent[type]) { - // return; - // } - // - // switch (type) { - // case 'etherpad': - // appsStateEvent.etherpad = { - // type: type, - // url: 'http://localhost:8000/etherpad.html', - // }; - // break; - // case 'grafana': - // appsStateEvent.grafana = { - // type: type, - // url: 'http://localhost:8000/grafana.html', - // }; - // break; - // case 'jitsi': - // appsStateEvent.videoConf = { - // type: type, - // url: 'http://localhost:8000/jitsi.html', - // data: { - // confId: this.props.room.roomId.replace(/[^A-Za-z0-9]/g, '_') + Date.now(), - // }, - // }; - // break; - // case 'vrdemo': - // appsStateEvent.vrDemo = { - // type: type, - // url: 'http://localhost:8000/vrdemo.html', - // data: { - // roomAlias: '#vrvc' + this.props.room.roomId.replace(/[^A-Za-z0-9]/g, '_') + Date.now(), - // }, - // }; - // break; - // case 'custom': - // appsStateEvent.custom = { - // type: type, - // url: value, - // }; - // break; - // default: - // console.warn('Unsupported app type:', type); - // return; - // } - // - // MatrixClientPeg.get().sendStateEvent( - // this.props.room.roomId, - // 'im.vector.modular.widgets', - // appsStateEvent, - // '', - // ); - // }, - // }); - if (e) { e.preventDefault(); }