Skip to content
Snippets Groups Projects
Commit ca2c31fb authored by Tom Robinson's avatar Tom Robinson
Browse files

Use existing spinner icon

parent 7914efdf
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
import PopoverWithTrigger from '../../../query_builder/popover_with_trigger.react';
import ColumnarSelector from '../../../query_builder/columnar_selector.react';
import Icon from '../../../query_builder/icon.react';
import LoadingIcon from '../../../components/icons/loading.react';
export default React.createClass({
displayName: "MetadataHeader",
......@@ -75,7 +76,7 @@ export default React.createClass({
renderSaveWidget: function() {
if (this.state.saving) {
return (<div className="mx2 px2 border-right"><div className="Spinner"></div></div>);
return (<div className="mx2 px2 border-right"><LoadingIcon width="24" height="24" /></div>);
} else if (this.state.error) {
return (<div className="mx2 px2 border-right text-error">Error: {this.state.error}</div>)
} else if (this.state.recentlySavedTimeout != null) {
......
......@@ -348,23 +348,6 @@
color: white !important;
}
.Spinner {
width: 24px;
height: 24px;
border-radius: 99px;
border: 3px solid rgba(111,122,139,0.25);
border-left: 3px solid rgba(111,122,139,1.0);
animation-name: spin;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.Toggle {
margin: 0.5em;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment