mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 01:08:34 +08:00
15 lines
353 B
JavaScript
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);
|