Refs #1: Simple initial take at progress bar.
This commit is contained in:
parent
dfba0f2138
commit
ab2866df5b
4 changed files with 20 additions and 3 deletions
|
@ -1,4 +1,17 @@
|
|||
import Ember from 'ember';
|
||||
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
|
||||
/* global NProgress */
|
||||
|
||||
export default Ember.Route.extend(ApplicationRouteMixin);
|
||||
export default Ember.Route.extend(ApplicationRouteMixin, {
|
||||
actions: {
|
||||
loading: function() {
|
||||
NProgress.start();
|
||||
this.router.one('didTransition', function() {
|
||||
return setTimeout((function() {
|
||||
return NProgress.done();
|
||||
}), 50);
|
||||
});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue