Fix version check when your version is later than the one fetched by the last version check job
This commit is contained in:
parent
fb010727d1
commit
f30a74c4f6
|
@ -8,8 +8,8 @@
|
||||||
**/
|
**/
|
||||||
Discourse.VersionCheck = Discourse.Model.extend({
|
Discourse.VersionCheck = Discourse.Model.extend({
|
||||||
upToDate: function() {
|
upToDate: function() {
|
||||||
return this.get('latest_version') === this.get('installed_version');
|
return this.get('missing_versions_count') === 0;
|
||||||
}.property('latest_version', 'installed_version'),
|
}.property('missing_versions_count'),
|
||||||
|
|
||||||
behindByOneVersion: function() {
|
behindByOneVersion: function() {
|
||||||
return this.get('missing_versions_count') === 1;
|
return this.get('missing_versions_count') === 1;
|
||||||
|
|
Loading…
Reference in New Issue