diff options
author | Joas Schilling <coding@schilljs.com> | 2018-11-08 14:50:12 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-11-08 14:52:28 +0100 |
commit | b04a44babdecad235828505191f5b36f2605ec72 (patch) | |
tree | 512eceb03a437beeb5f33990f80b5e917ee1f1ca /apps/updatenotification/src/components | |
parent | 90a35aab2970dd22c1503fcec73da1057efba491 (diff) | |
download | nextcloud-server-b04a44babdecad235828505191f5b36f2605ec72.tar.gz nextcloud-server-b04a44babdecad235828505191f5b36f2605ec72.zip |
Use the version number when checking the appstore for compatible updates
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/updatenotification/src/components')
-rw-r--r-- | apps/updatenotification/src/components/root.vue | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/updatenotification/src/components/root.vue b/apps/updatenotification/src/components/root.vue index efe7375a4b4..b2fcdf328cc 100644 --- a/apps/updatenotification/src/components/root.vue +++ b/apps/updatenotification/src/components/root.vue @@ -156,7 +156,7 @@ } $.ajax({ - url: OC.linkToOCS('apps/updatenotification/api/v1/applist', 2) + this.newVersionString, + url: OC.linkToOCS('apps/updatenotification/api/v1/applist', 2) + this.newVersion, type: 'GET', beforeSend: function (request) { request.setRequestHeader('Accept', 'application/json'); @@ -196,20 +196,18 @@ return t('updatenotification', 'Checking apps for compatible updates'); } - if (this.appstoreDisabled) { + if (this.appStoreDisabled) { return t('updatenotification', 'Please make sure your config.php does not set <samp>appstoreenabled</samp> to false.'); } - if (this.appstoreFailed) { + if (this.appStoreFailed) { return t('updatenotification', 'Could not connect to the appstore or the appstore returned no updates at all. Search manually for updates or make sure your server has access to the internet and can connect to the appstore.'); } return this.missingAppUpdates.length === 0 ? t('updatenotification', '<strong>All</strong> apps have an update for this version available', this) : n('updatenotification', '<strong>%n</strong> app has no update for this version available', '<strong>%n</strong> apps have no update for this version available', - this.missingAppUpdates.length, { - version: this.newVersionString - }); + this.missingAppUpdates.length); }, productionInfoString: function() { @@ -313,6 +311,7 @@ // Parse server data var data = JSON.parse($('#updatenotification').attr('data-json')); + this.newVersion = data.newVersion; this.newVersionString = data.newVersionString; this.lastCheckedDate = data.lastChecked; this.isUpdateChecked = data.isUpdateChecked; |