summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-04 11:33:40 +0200
committerGitHub <noreply@github.com>2019-10-04 11:33:40 +0200
commit2507f26428873e12976c9e3b9e0a0fb7d8429fdd (patch)
tree2d08204dd1a7c3655c0c403e84def72cef2804c7 /apps
parent7b729c581dea8454aaf00578c365ef78bfdba5b7 (diff)
parentc436b2ccf6871f6fda82b04a594abc5326accd74 (diff)
downloadnextcloud-server-2507f26428873e12976c9e3b9e0a0fb7d8429fdd.tar.gz
nextcloud-server-2507f26428873e12976c9e3b9e0a0fb7d8429fdd.zip
Merge pull request #17357 from nextcloud/enh/oauth/no_oc_binding
Import router in oauth js
Diffstat (limited to 'apps')
-rw-r--r--apps/oauth2/src/App.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/oauth2/src/App.vue b/apps/oauth2/src/App.vue
index 9098401be10..d40cb8e9647 100644
--- a/apps/oauth2/src/App.vue
+++ b/apps/oauth2/src/App.vue
@@ -75,6 +75,7 @@
<script>
import axios from 'nextcloud-axios'
import OAuthItem from './components/OAuthItem'
+import { generateUrl } from '@nextcloud/router'
export default {
name: 'App',
@@ -99,7 +100,7 @@ export default {
},
methods: {
deleteClient(id) {
- axios.delete(OC.generateUrl('apps/oauth2/clients/{id}', { id: id }))
+ axios.delete(generateUrl('apps/oauth2/clients/{id}', { id: id }))
.then((response) => {
this.clients = this.clients.filter(client => client.id !== id)
})
@@ -108,7 +109,7 @@ export default {
this.newClient.error = false
axios.post(
- OC.generateUrl('apps/oauth2/clients'),
+ generateUrl('apps/oauth2/clients'),
{
name: this.newClient.name,
redirectUri: this.newClient.redirectUri