diff options
Diffstat (limited to 'apps/oauth2/src')
-rw-r--r-- | apps/oauth2/src/App.vue | 16 | ||||
-rw-r--r-- | apps/oauth2/src/components/OAuthItem.vue | 12 | ||||
-rw-r--r-- | apps/oauth2/src/main.js | 4 |
3 files changed, 16 insertions, 16 deletions
diff --git a/apps/oauth2/src/App.vue b/apps/oauth2/src/App.vue index 9f720be796e..e18502ee6f3 100644 --- a/apps/oauth2/src/App.vue +++ b/apps/oauth2/src/App.vue @@ -80,13 +80,13 @@ import { generateUrl } from '@nextcloud/router' export default { name: 'App', components: { - OAuthItem + OAuthItem, }, props: { clients: { type: Array, - required: true - } + required: true, + }, }, data: function() { return { @@ -94,8 +94,8 @@ export default { name: '', redirectUri: '', errorMsg: '', - error: false - } + error: false, + }, } }, methods: { @@ -112,7 +112,7 @@ export default { generateUrl('apps/oauth2/clients'), { name: this.newClient.name, - redirectUri: this.newClient.redirectUri + redirectUri: this.newClient.redirectUri, } ).then(response => { this.clients.push(response.data) @@ -123,7 +123,7 @@ export default { this.newClient.error = true this.newClient.errorMsg = reason.response.data.message }) - } - } + }, + }, } </script> diff --git a/apps/oauth2/src/components/OAuthItem.vue b/apps/oauth2/src/components/OAuthItem.vue index 2d670447d72..8da5442ab5e 100644 --- a/apps/oauth2/src/components/OAuthItem.vue +++ b/apps/oauth2/src/components/OAuthItem.vue @@ -37,8 +37,8 @@ export default { props: { client: { type: Object, - required: true - } + required: true, + }, }, data: function() { return { @@ -47,7 +47,7 @@ export default { redirectUri: this.client.redirectUri, clientId: this.client.clientId, clientSecret: this.client.clientSecret, - renderSecret: false + renderSecret: false, } }, computed: { @@ -57,13 +57,13 @@ export default { } else { return '****' } - } + }, }, methods: { toggleSecret() { this.renderSecret = !this.renderSecret - } - } + }, + }, } </script> diff --git a/apps/oauth2/src/main.js b/apps/oauth2/src/main.js index 61aea381151..42fcb522eca 100644 --- a/apps/oauth2/src/main.js +++ b/apps/oauth2/src/main.js @@ -32,7 +32,7 @@ const clients = loadState('oauth2', 'clients') const View = Vue.extend(App) const oauth = new View({ propsData: { - clients - } + clients, + }, }) oauth.$mount('#oauth2') |