diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-09 18:16:40 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-12 17:03:49 +0200 |
commit | 2ef6613857e3f11c017a516aa06871665b203ddb (patch) | |
tree | 1366735c8b499ef98a8fec72232d1caebfd04c24 /src/App.vue | |
parent | 6ec6fc50f1e798b2243bf38fce0345572c1140d2 (diff) |
migrate away from depricated OC.generateUrl
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index 572000a6..78ac28d1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -97,6 +97,7 @@ import axios from '@nextcloud/axios' import Search from './components/Search.vue' import currentuserMixin from './mixins/currentUserMixin' import { loadState } from '@nextcloud/initial-state' +import { generateUrl } from '@nextcloud/router' export default { name: 'App', @@ -214,7 +215,7 @@ export default { this.infoHidden = true }, setCloudAddress() { - axios.post(OC.generateUrl('apps/social/api/v1/config/cloudAddress'), { cloudAddress: this.cloudAddress }).then((response) => { + axios.post(generateUrl('apps/social/api/v1/config/cloudAddress'), { cloudAddress: this.cloudAddress }).then((response) => { this.$store.commit('setServerDataEntry', 'setup', false) this.$store.commit('setServerDataEntry', 'cloudAddress', this.cloudAddress) }) |