mirror of
https://github.com/flarum/framework.git
synced 2025-03-10 04:05:30 +08:00
Merge pull request #1520 from sijad/spinner-config
configure spinner only once
This commit is contained in:
commit
f6a7f62c2e
@ -19,7 +19,9 @@ export default class LoadingIndicator extends Component {
|
|||||||
return <div {...attrs}>{m.trust(' ')}</div>;
|
return <div {...attrs}>{m.trust(' ')}</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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user