discourse/app/assets/javascripts/admin/routes/admin_dashboard_route.js
2013-02-21 10:19:17 -05:00

15 lines
353 B
JavaScript

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