Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-09-26 21:12:24 +0300
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2019-09-28 16:30:34 +0300
commit9e2bb5ef36b686ec619a069c65712f2d57c3a1cc (patch)
treeb912fa5df8344f0bdad80530502a1a42b9b7704b /apps/oauth2/src/App.vue
parent17cdcfe4a819708ac7f344d7aca2220a63c40310 (diff)
Move oauth admin settings to initialstate
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/oauth2/src/App.vue')
-rw-r--r--apps/oauth2/src/App.vue13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/oauth2/src/App.vue b/apps/oauth2/src/App.vue
index 58ea4b819a6..1d6998ce305 100644
--- a/apps/oauth2/src/App.vue
+++ b/apps/oauth2/src/App.vue
@@ -59,12 +59,17 @@ import OAuthItem from './components/OAuthItem';
export default {
name: 'App',
+ props: {
+ clients: {
+ type: Array,
+ required: true
+ }
+ },
components: {
OAuthItem
},
data: function() {
return {
- clients: [],
newClient: {
name: '',
redirectUri: '',
@@ -73,12 +78,6 @@ export default {
}
};
},
- beforeMount: function() {
- Axios.get(OC.generateUrl('apps/oauth2/clients'))
- .then((response) => {
- this.clients = response.data;
- });
- },
methods: {
deleteClient(id) {
Axios.delete(OC.generateUrl('apps/oauth2/clients/{id}', {id: id}))