diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2018-06-26 17:25:37 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-06-29 09:11:04 +0200 |
commit | 25d9c3e52921b107383e5d05f3649178bd7cd1cf (patch) | |
tree | 837fb580784174aa14a1d412056b1e9bf4f61772 /apps/updatenotification/src | |
parent | 4ed8ee1c1e8ada0e5d26f6e014896accc89d4d6a (diff) | |
download | nextcloud-server-25d9c3e52921b107383e5d05f3649178bd7cd1cf.tar.gz nextcloud-server-25d9c3e52921b107383e5d05f3649178bd7cd1cf.zip |
adjust backend and gui to update and changelog server
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/updatenotification/src')
-rw-r--r-- | apps/updatenotification/src/components/root.vue | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/updatenotification/src/components/root.vue b/apps/updatenotification/src/components/root.vue index 96cce351cac..fcc5a9dd831 100644 --- a/apps/updatenotification/src/components/root.vue +++ b/apps/updatenotification/src/components/root.vue @@ -222,7 +222,9 @@ }, whatsNew: function () { - + if(this.whatsNewData.length === 0) { + return null; + } var whatsNew = []; for (var i in this.whatsNewData) { whatsNew[i] = { icon: 'icon-star-dark', longtext: this.whatsNewData[i] }; @@ -307,7 +309,6 @@ beforeMount: function() { // Parse server data var data = JSON.parse($('#updatenotification').attr('data-json')); - console.warn(data); this.newVersionString = data.newVersionString; this.lastCheckedDate = data.lastChecked; @@ -321,7 +322,15 @@ this.notifyGroups = data.notifyGroups; this.isDefaultUpdateServerURL = data.isDefaultUpdateServerURL; this.versionIsEol = data.versionIsEol; - this.whatsNewData = data.whatsNew; + if(data.changes && data.changes.changelogURL) { + this.changelogURL = data.changes.changelogURL; + } + if(data.changes && data.changes.whatsNew) { + if(data.changes.whatsNew.admin) { + this.whatsNewData = this.whatsNewData.concat(data.changes.whatsNew.admin); + } + this.whatsNewData = this.whatsNewData.concat(data.changes.whatsNew.regular); + } }, mounted: function () { this._$el = $(this.$el); |