This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/application/route.js
2015-06-05 08:35:44 -08:00

17 lines
441 B
JavaScript

import Ember from 'ember';
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin';
/* global NProgress */
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;
}
}
});