diff --git a/skins/base/views/molecules/RoomHeader.js b/skins/base/views/molecules/RoomHeader.js index 23bd63d3..e4a16b82 100644 --- a/skins/base/views/molecules/RoomHeader.js +++ b/skins/base/views/molecules/RoomHeader.js @@ -49,10 +49,10 @@ module.exports = React.createClass({
-
+
-
+
diff --git a/skins/base/views/organisms/VideoView.js b/skins/base/views/molecules/VideoView.js similarity index 100% rename from skins/base/views/organisms/VideoView.js rename to skins/base/views/molecules/VideoView.js diff --git a/skins/base/views/organisms/RoomView.js b/skins/base/views/organisms/RoomView.js index eb91b544..26b96baa 100644 --- a/skins/base/views/organisms/RoomView.js +++ b/skins/base/views/organisms/RoomView.js @@ -26,6 +26,7 @@ var classNames = require("classnames"); var MessageTile = ComponentBroker.get('molecules/MessageTile'); var RoomHeader = ComponentBroker.get('molecules/RoomHeader'); var MessageComposer = ComponentBroker.get('molecules/MessageComposer'); +var VideoView = ComponentBroker.get("molecules/VideoView"); var RoomViewController = require("../../../../src/controllers/organisms/RoomView"); @@ -36,6 +37,10 @@ module.exports = React.createClass({ displayName: 'RoomView', mixins: [RoomViewController], + getVideoView: function() { + return this.refs.video; + }, + render: function() { var myUserId = MatrixClientPeg.get().credentials.userId; if (this.state.room.currentState.members[myUserId].membership == 'invite') { @@ -67,7 +72,9 @@ module.exports = React.createClass({ return (
-
+
+ +
diff --git a/skins/base/views/pages/MatrixChat.js b/skins/base/views/pages/MatrixChat.js index fcc1d274..11e2be9c 100644 --- a/skins/base/views/pages/MatrixChat.js +++ b/skins/base/views/pages/MatrixChat.js @@ -22,7 +22,6 @@ var ComponentBroker = require('../../../../src/ComponentBroker'); var LeftPanel = ComponentBroker.get('organisms/LeftPanel'); var RoomView = ComponentBroker.get('organisms/RoomView'); var RightPanel = ComponentBroker.get('organisms/RightPanel'); -var VideoView = ComponentBroker.get('organisms/VideoView'); var Login = ComponentBroker.get('templates/Login'); var MatrixChatController = require("../../../../src/controllers/pages/MatrixChat"); @@ -41,7 +40,6 @@ module.exports = React.createClass({
-
); diff --git a/src/ComponentBroker.js b/src/ComponentBroker.js index e717ebb9..ec0f00b6 100644 --- a/src/ComponentBroker.js +++ b/src/ComponentBroker.js @@ -89,6 +89,6 @@ require('../skins/base/views/organisms/RightPanel'); require('../skins/base/views/molecules/RoomCreate'); require('../skins/base/views/molecules/RoomDropTarget'); require('../skins/base/views/molecules/DirectoryMenu'); -require('../skins/base/views/organisms/VideoView'); +require('../skins/base/views/molecules/VideoView'); } diff --git a/src/controllers/molecules/RoomHeader.js b/src/controllers/molecules/RoomHeader.js index 8aa688b2..49f85caa 100644 --- a/src/controllers/molecules/RoomHeader.js +++ b/src/controllers/molecules/RoomHeader.js @@ -16,6 +16,14 @@ limitations under the License. 'use strict'; +var MatrixClientPeg = require("../../MatrixClientPeg"); + module.exports = { + onVideoClick: function() { + console.log("video clicked"); + }, + onVoiceClick: function() { + console.log("voice clicked"); + } };