discourse/app/assets/javascripts/admin/routes/admin_dashboard_route.js

12 lines
285 B
JavaScript

(function() {
Discourse.AdminDashboardRoute = Discourse.Route.extend({
setupController: function(c) {
return Discourse.VersionCheck.find().then(function(vc) {
c.set('versionCheck', vc);
return c.set('loading', false);
});
}
});
}).call(this);