Files
mostlymatter/webapp/components/loading_screen.jsx
enahum 781ff323db Webrtc client side (#4026)
* WebRTC Server side

* WebRTC client side

* Bug fixes and improvements

* Pushing UI improvements for webrtc (#3728)

* Pushing UI improvements for webrtc

* Updating webrtc css

* PLT-3943 WebRTC P1: bug fixes and improvements

* Video resolution set to std, reduce volume of ringtone and flip video horizontally

* Fix calling a user B while WebRTC RHS is still opened

* Leave RHS opened when call ends, Fix isBusy on popover and channel_header

* Fix pre-release feature, RHS & System Console

* PLT-3945 - Updating UI for webrtc (#3908)

* PLT-3943 Webrtc p1

* Add ongoing call indicator when RHS is opened

* UI updates to to webrtc notifcation (#3959)
2016-09-16 15:35:13 -03:00

50 строки
1.3 KiB
JavaScript

// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {FormattedMessage} from 'react-intl';
import React from 'react';
export default class LoadingScreen extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
let message = (
<FormattedMessage
id='loading_screen.loading'
defaultMessage='Loading'
/>
);
if (this.props.message) {
message = this.props.message;
}
return (
<div
className='loading-screen'
style={{position: this.props.position}}
>
<div className='loading__content'>
<h3>
{message}
</h3>
<div className='round round-1'></div>
<div className='round round-2'></div>
<div className='round round-3'></div>
</div>
</div>
);
}
}
LoadingScreen.defaultProps = {
position: 'relative'
};
LoadingScreen.propTypes = {
position: React.PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'inherit']),
message: React.PropTypes.node
};