mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 07:39:56 +08:00
Replace Ember app with Mithril app
This commit is contained in:
15
js/lib/components/loading-indicator.js
Normal file
15
js/lib/components/loading-indicator.js
Normal file
@ -0,0 +1,15 @@
|
||||
import Component from 'flarum/component';
|
||||
|
||||
export default class LoadingIndicator extends Component {
|
||||
view() {
|
||||
var size = this.props.size || 'small';
|
||||
delete this.props.size;
|
||||
|
||||
this.props.config = function(element) {
|
||||
$.fn.spin.presets[size].zIndex = 'auto';
|
||||
$(element).spin(size);
|
||||
};
|
||||
|
||||
return m('div.loading-indicator', this.props, m.trust(' '));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user