aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2/src/components/OAuthItem.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 18:19:42 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 17:16:09 +0200
commitb9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch)
tree61b47fbf37c1d168da8625224debde9e6a985348 /apps/oauth2/src/components/OAuthItem.vue
parent7fb651235128dcbca8a6683b5cdafdf835f46300 (diff)
downloadnextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.tar.gz
nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.zip
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/oauth2/src/components/OAuthItem.vue')
-rw-r--r--apps/oauth2/src/components/OAuthItem.vue34
1 files changed, 18 insertions, 16 deletions
diff --git a/apps/oauth2/src/components/OAuthItem.vue b/apps/oauth2/src/components/OAuthItem.vue
index 361c5ed5032..2d670447d72 100644
--- a/apps/oauth2/src/components/OAuthItem.vue
+++ b/apps/oauth2/src/components/OAuthItem.vue
@@ -21,11 +21,13 @@
-->
<template>
<tr>
- <td>{{name}}</td>
- <td>{{redirectUri}}</td>
- <td><code>{{clientId}}</code></td>
- <td><code>{{renderedSecret}}</code><a class='icon-toggle has-tooltip' :title="t('oauth2', 'Show client secret')" @click="toggleSecret"></a></td>
- <td class="action-column"><span><a class="icon-delete has-tooltip" :title="t('oauth2', 'Delete')" @click="$emit('delete', id)"></a></span></td>
+ <td>{{ name }}</td>
+ <td>{{ redirectUri }}</td>
+ <td><code>{{ clientId }}</code></td>
+ <td><code>{{ renderedSecret }}</code><a class="icon-toggle has-tooltip" :title="t('oauth2', 'Show client secret')" @click="toggleSecret" /></td>
+ <td class="action-column">
+ <span><a class="icon-delete has-tooltip" :title="t('oauth2', 'Delete')" @click="$emit('delete', id)" /></span>
+ </td>
</tr>
</template>
@@ -39,27 +41,27 @@ export default {
}
},
data: function() {
- return {
- id: this.client.id,
- name: this.client.name,
- redirectUri: this.client.redirectUri,
- clientId: this.client.clientId,
- clientSecret: this.client.clientSecret,
- renderSecret: false,
- };
+ return {
+ id: this.client.id,
+ name: this.client.name,
+ redirectUri: this.client.redirectUri,
+ clientId: this.client.clientId,
+ clientSecret: this.client.clientSecret,
+ renderSecret: false
+ }
},
computed: {
renderedSecret: function() {
if (this.renderSecret) {
- return this.clientSecret;
+ return this.clientSecret
} else {
- return '****';
+ return '****'
}
}
},
methods: {
toggleSecret() {
- this.renderSecret = !this.renderSecret;
+ this.renderSecret = !this.renderSecret
}
}
}