From f30a74c4f62c90999c3fdd2716653cbd2609041a Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 15 Apr 2013 11:00:29 -0400 Subject: [PATCH] Fix version check when your version is later than the one fetched by the last version check job --- app/assets/javascripts/admin/models/version_check.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/models/version_check.js b/app/assets/javascripts/admin/models/version_check.js index 4093a73cdc6..2f9b0e67f48 100644 --- a/app/assets/javascripts/admin/models/version_check.js +++ b/app/assets/javascripts/admin/models/version_check.js @@ -8,8 +8,8 @@ **/ Discourse.VersionCheck = Discourse.Model.extend({ upToDate: function() { - return this.get('latest_version') === this.get('installed_version'); - }.property('latest_version', 'installed_version'), + return this.get('missing_versions_count') === 0; + }.property('missing_versions_count'), behindByOneVersion: function() { return this.get('missing_versions_count') === 1;