summaryrefslogtreecommitdiffstats
path: root/webapp/components/loading_screen.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/loading_screen.jsx')
-rw-r--r--webapp/components/loading_screen.jsx19
1 files changed, 14 insertions, 5 deletions
diff --git a/webapp/components/loading_screen.jsx b/webapp/components/loading_screen.jsx
index 9f4abf7f6..288eda389 100644
--- a/webapp/components/loading_screen.jsx
+++ b/webapp/components/loading_screen.jsx
@@ -11,6 +11,17 @@ export default class LoadingScreen extends React.Component {
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'
@@ -18,10 +29,7 @@ export default class LoadingScreen extends React.Component {
>
<div className='loading__content'>
<h3>
- <FormattedMessage
- id='loading_screen.loading'
- defaultMessage='Loading'
- />
+ {message}
</h3>
<div className='round round-1'></div>
<div className='round round-2'></div>
@@ -36,5 +44,6 @@ LoadingScreen.defaultProps = {
position: 'relative'
};
LoadingScreen.propTypes = {
- position: React.PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'inherit'])
+ position: React.PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'inherit']),
+ message: React.PropTypes.node
};