Import router

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-10-01 14:58:20 +02:00
parent ecfa6f7e0c
commit a2a538bc2f
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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