mirror of
https://github.com/flarum/framework.git
synced 2025-01-10 13:03:43 +08:00
20 lines
393 B
JavaScript
20 lines
393 B
JavaScript
|
import Ember from 'ember';
|
||
|
|
||
|
var precompileTemplate = Ember.Handlebars.compile;
|
||
|
|
||
|
/**
|
||
|
Loading spinner.
|
||
|
*/
|
||
|
export default Ember.Component.extend({
|
||
|
classNames: ['loading-indicator'],
|
||
|
|
||
|
layout: precompileTemplate(' '),
|
||
|
size: 'small',
|
||
|
|
||
|
didInsertElement: function() {
|
||
|
var size = this.get('size');
|
||
|
Ember.$.fn.spin.presets[size].zIndex = 'auto';
|
||
|
this.$().spin(size);
|
||
|
}
|
||
|
});
|