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:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 19:19:42 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 18:16:09 +0300
commitb9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch)
tree61b47fbf37c1d168da8625224debde9e6a985348 /apps/settings/src/components/AuthTokenList.vue
parent7fb651235128dcbca8a6683b5cdafdf835f46300 (diff)
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/settings/src/components/AuthTokenList.vue')
-rw-r--r--apps/settings/src/components/AuthTokenList.vue96
1 files changed, 48 insertions, 48 deletions
diff --git a/apps/settings/src/components/AuthTokenList.vue b/apps/settings/src/components/AuthTokenList.vue
index a7c0faf1b7b..65f42197eda 100644
--- a/apps/settings/src/components/AuthTokenList.vue
+++ b/apps/settings/src/components/AuthTokenList.vue
@@ -22,67 +22,67 @@
<template>
<table id="app-tokens-table">
<thead v-if="tokens.length">
- <tr>
- <th></th>
- <th>{{ t('settings', 'Device') }}</th>
- <th>{{ t('settings', 'Last activity') }}</th>
- <th></th>
- </tr>
+ <tr>
+ <th />
+ <th>{{ t('settings', 'Device') }}</th>
+ <th>{{ t('settings', 'Last activity') }}</th>
+ <th />
+ </tr>
</thead>
<tbody class="token-list">
- <AuthToken v-for="token in sortedTokens"
- :key="token.id"
- :token="token"
- @toggleScope="toggleScope"
- @rename="rename"
- @delete="onDelete"
- @wipe="onWipe" />
+ <AuthToken v-for="token in sortedTokens"
+ :key="token.id"
+ :token="token"
+ @toggleScope="toggleScope"
+ @rename="rename"
+ @delete="onDelete"
+ @wipe="onWipe" />
</tbody>
</table>
</template>
<script>
- import AuthToken from './AuthToken';
+import AuthToken from './AuthToken'
- export default {
- name: 'AuthTokenList',
- components: {
- AuthToken
+export default {
+ name: 'AuthTokenList',
+ components: {
+ AuthToken
+ },
+ props: {
+ tokens: {
+ type: Array,
+ required: true
+ }
+ },
+ computed: {
+ sortedTokens() {
+ return this.tokens.slice().sort((t1, t2) => {
+ var ts1 = parseInt(t1.lastActivity, 10)
+ var ts2 = parseInt(t2.lastActivity, 10)
+ return ts2 - ts1
+ })
+ }
+ },
+ methods: {
+ toggleScope(token, scope, value) {
+ // Just pass it on
+ this.$emit('toggleScope', token, scope, value)
},
- props: {
- tokens: {
- type: Array,
- required: true,
- }
+ rename(token, newName) {
+ // Just pass it on
+ this.$emit('rename', token, newName)
},
- computed: {
- sortedTokens () {
- return this.tokens.sort((t1, t2) => {
- var ts1 = parseInt(t1.lastActivity, 10);
- var ts2 = parseInt(t2.lastActivity, 10);
- return ts2 - ts1;
- })
- }
+ onDelete(token) {
+ // Just pass it on
+ this.$emit('delete', token)
},
- methods: {
- toggleScope (token, scope, value) {
- // Just pass it on
- this.$emit('toggleScope', token, scope, value);
- },
- rename (token, newName) {
- // Just pass it on
- this.$emit('rename', token, newName);
- },
- onDelete (token) {
- // Just pass it on
- this.$emit('delete', token);
- },
- onWipe(token) {
- // Just pass it on
- this.$emit('wipe', token);
- }
+ onWipe(token) {
+ // Just pass it on
+ this.$emit('wipe', token)
}
}
+}
</script>
<style lang="scss" scoped>