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

27 lines
592 B
JavaScript
Raw Normal View History

(function() {
/**
Handles the default admin route
@class AdminDashboardRoute
@extends Discourse.Route
@namespace Discourse
@module Discourse
**/
Discourse.AdminDashboardRoute = Discourse.Route.extend({
setupController: function(c) {
if( Discourse.SiteSettings.version_checks ) {
Discourse.VersionCheck.find().then(function(vc) {
c.set('versionCheck', vc);
c.set('loading', false);
});
}
2013-02-21 15:55:58 -05:00
},
renderTemplate: function() {
this.render({into: 'admin/templates/admin'});
}
});
}).call(this);