Fix check if you're up to date in javascript

This commit is contained in:
Neil Lalonde
2013-03-06 10:34:15 -05:00
parent 208575f93d
commit 83f89b5c55
4 changed files with 7 additions and 7 deletions

View File

@@ -8,8 +8,8 @@
**/
Discourse.VersionCheck = Discourse.Model.extend({
upToDate: function() {
return this.get('missing_versions_count') === 0;
}.property('missing_versions_count'),
return this.get('latest_version') === this.get('installed_version');
}.property('latest_version', 'installed_version'),
behindByOneVersion: function() {
return this.get('missing_versions_count') === 1;