only show the zoom button on video calls

kegan/timestamp-hover
Matthew Hodgson 2015-10-21 01:22:29 +01:00
parent 006f0b00c6
commit 5d1ad4d259
1 changed files with 8 additions and 6 deletions

View File

@ -93,12 +93,6 @@ module.exports = React.createClass({
End call End call
</div> </div>
); );
zoom_button = (
<div className="mx_RoomHeader_button" onClick={this.onFullscreenClick}>
<img src="img/zoom.png" title="Fullscreen" alt="Fullscreen" width="32" height="32" style={{ 'marginTop': '3px' }}/>
</div>
);
} }
var name = null; var name = null;
@ -136,6 +130,14 @@ module.exports = React.createClass({
); );
} }
if (activeCall && activeCall.type == "video") {
zoom_button = (
<div className="mx_RoomHeader_button" onClick={this.onFullscreenClick}>
<img src="img/zoom.png" title="Fullscreen" alt="Fullscreen" width="32" height="32" style={{ 'marginTop': '3px' }}/>
</div>
);
}
header = header =
<div className="mx_RoomHeader_wrapper"> <div className="mx_RoomHeader_wrapper">
<div className="mx_RoomHeader_leftRow"> <div className="mx_RoomHeader_leftRow">