mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
first cut loading spinner pieces
This commit is contained in:
parent
fd094aa471
commit
3ae10c5e50
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -53,8 +53,7 @@ let EditionContainer = React.createClass({
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
// TODO translate?
|
<span className="glyph-ascribe-spool-chunked spin"/>
|
||||||
<p>Loading</p>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -352,3 +352,11 @@ hr {
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fullpage-spinner {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user