bigbluebutton-Github/bigbluebutton-html5/app/client/views/whiteboard/UploadingFileListItem.jsx
2016-03-14 14:40:17 -07:00

16 lines
428 B
JavaScript
Executable File

UploadingFileListItem = React.createClass ({
percUploaded() {
return Math.round((this.uploadedSize / this.size) * 100);
},
render() {
<li class="presenter-uploader-file-item is-uploading">
<span class="presenter-uploader-file-item-name">
{this.props.name}
</span>
<span class="presenter-uploader-file-item-progress">
{percUploaded}%
</span>
</li>
}
});