diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-07 21:56:28 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-05-08 06:40:07 +0000 |
commit | 0f781e35bdd101d8e2b34b9908f59277874d70cf (patch) | |
tree | a743419f00305af0423bad46c7700d77a2c794ec /apps/updatenotification/src | |
parent | ab54225eda6db7f92ab6c7fae0589d5700d3e8dc (diff) | |
download | nextcloud-server-0f781e35bdd101d8e2b34b9908f59277874d70cf.tar.gz nextcloud-server-0f781e35bdd101d8e2b34b9908f59277874d70cf.zip |
Fix linter warnings for the updatenotification
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/updatenotification/src')
-rw-r--r-- | apps/updatenotification/src/components/UpdateNotification.vue | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/updatenotification/src/components/UpdateNotification.vue b/apps/updatenotification/src/components/UpdateNotification.vue index 4d7df8d68d4..b7b43b6b880 100644 --- a/apps/updatenotification/src/components/UpdateNotification.vue +++ b/apps/updatenotification/src/components/UpdateNotification.vue @@ -109,6 +109,7 @@ </template> <script> +import { generateUrl, getRootUrl, generateOcsUrl } from '@nextcloud/router' import { PopoverMenu, Multiselect } from '@nextcloud/vue' import { VTooltip } from 'v-tooltip' import ClickOutside from 'vue-click-outside' @@ -287,7 +288,7 @@ export default { } $.ajax({ - url: OC.linkToOCS('apps/updatenotification/api/v1/applist', 2) + this.newVersion, + url: generateOcsUrl('apps/updatenotification/api/v1/applist', 2) + this.newVersion, type: 'GET', beforeSend: function(request) { request.setRequestHeader('Accept', 'application/json') @@ -344,7 +345,7 @@ export default { }.bind(this)) $.ajax({ - url: OC.linkToOCS('cloud', 2) + '/groups', + url: generateOcsUrl('cloud', 2) + '/groups', dataType: 'json', success: function(data) { const results = [] @@ -364,12 +365,12 @@ export default { */ clickUpdaterButton: function() { $.ajax({ - url: OC.generateUrl('/apps/updatenotification/credentials'), + url: generateUrl('/apps/updatenotification/credentials'), }).success(function(token) { // create a form to send a proper post request to the updater const form = document.createElement('form') form.setAttribute('method', 'post') - form.setAttribute('action', OC.getRootPath() + '/updater/') + form.setAttribute('action', getRootUrl() + '/updater/') const hiddenField = document.createElement('input') hiddenField.setAttribute('type', 'hidden') @@ -395,7 +396,7 @@ export default { this.currentChannel = channel $.ajax({ - url: OC.generateUrl('/apps/updatenotification/channel'), + url: generateUrl('/apps/updatenotification/channel'), type: 'POST', data: { 'channel': this.currentChannel, |