1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-30 21:52:08 +02:00

first cut loading spinner pieces

This commit is contained in:
Tim Daubenschütz 2015-07-13 15:00:12 +02:00
parent fd094aa471
commit 3ae10c5e50
4 changed files with 13 additions and 4 deletions

View File

@ -36,7 +36,7 @@ let AccordionListItem = React.createClass({
}, },
componentDidUpdate() { componentDidUpdate() {
if(this.props.content.num_editions === 0 && typeof this.state.pollingIntervalIndex == 'undefined') { if(this.props.content.num_editions === 0 && typeof this.state.pollingIntervalIndex === 'undefined') {
this.startPolling(); this.startPolling();
} }
}, },

View File

@ -53,8 +53,7 @@ let EditionContainer = React.createClass({
); );
} else { } else {
return ( return (
// TODO translate? <span className="glyph-ascribe-spool-chunked spin"/>
<p>Loading</p>
); );
} }
} }

View File

@ -48,7 +48,9 @@ let PieceContainer = React.createClass({
); );
} else { } else {
return ( return (
<p>Loading</p> <div className="fullpage-spinner">
<span className="glyph-ascribe-spool-chunked spin"/>
</div>
); );
} }
} }

View File

@ -351,4 +351,12 @@ hr {
.glyph-ascribe-spool { .glyph-ascribe-spool {
color: white; color: white;
} }
}
.fullpage-spinner {
width: 100%;
height: 100vh;
text-align: center;
vertical-align: middle;
} }