1
0
mirror of https://github.com/flarum/core.git synced 2025-05-05 06:57:55 +02:00

configure spinner only once

This commit is contained in:
Sajjad Hashemian 2018-07-24 19:25:09 +04:30
parent cfc207f255
commit 640b93af36

View File

@ -19,7 +19,9 @@ export default class LoadingIndicator extends Component {
return <div {...attrs}>{m.trust('&nbsp;')}</div>; return <div {...attrs}>{m.trust('&nbsp;')}</div>;
} }
config() { config(isInitialized) {
if (isInitialized) return;
const options = { zIndex: 'auto', color: this.$().css('color') }; const options = { zIndex: 'auto', color: this.$().css('color') };
switch (this.props.size) { switch (this.props.size) {