summaryrefslogtreecommitdiffstats
path: root/apps/accessibility/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-12 15:39:25 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-10-14 10:11:06 +0200
commitffef4bd62724c4c80a5901f226d7a6311428fbb7 (patch)
treece91f51686f4ff147358a1100f572c6b3189c14c /apps/accessibility/src
parent0df5e0b0dbef2cb45080e85d61076753415d8510 (diff)
downloadnextcloud-server-ffef4bd62724c4c80a5901f226d7a6311428fbb7.tar.gz
nextcloud-server-ffef4bd62724c4c80a5901f226d7a6311428fbb7.zip
Move to generateOcsUrl
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/accessibility/src')
-rw-r--r--apps/accessibility/src/Accessibility.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/accessibility/src/Accessibility.vue b/apps/accessibility/src/Accessibility.vue
index 590ecf60d60..3b90e8d9fe6 100644
--- a/apps/accessibility/src/Accessibility.vue
+++ b/apps/accessibility/src/Accessibility.vue
@@ -26,7 +26,7 @@
<script>
import ItemPreview from './components/ItemPreview'
import axios from '@nextcloud/axios'
-import { generateUrl } from '@nextcloud/router'
+import { generateUrl, generateOcsUrl } from '@nextcloud/router'
export default {
name: 'Accessibility',
@@ -119,7 +119,7 @@ export default {
async selectItem(type, id) {
try {
await axios({
- url: OC.linkToOCS('apps/accessibility/api/v1/config', 2) + type,
+ url: generateOcsUrl('apps/accessibility/api/v1/config', 2) + type,
method: id === '' ? 'DELETE' : 'POST',
data: {
value: id