]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix eslint errors in settings
authorJulius Härtl <jus@bitgrid.net>
Thu, 16 Jan 2020 19:08:43 +0000 (20:08 +0100)
committerJulius Härtl <jus@bitgrid.net>
Thu, 16 Jan 2020 19:12:00 +0000 (20:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/settings/src/components/UserList.vue

index 2cb4dc67c84256b7e4ad51998b03cdc53ef5e74d..6b41ba0552a78cd7a789e7ae63aa28e2acd65817 100644 (file)
@@ -248,11 +248,11 @@ import Vue from 'vue'
 
 const unlimitedQuota = {
        id: 'none',
-       label: t('settings', 'Unlimited')
+       label: t('settings', 'Unlimited'),
 }
 const defaultQuota = {
        id: 'default',
-       label: t('settings', 'Default quota')
+       label: t('settings', 'Default quota'),
 }
 const newUser = {
        id: '',
@@ -264,8 +264,8 @@ const newUser = {
        quota: defaultQuota,
        language: {
                code: 'en',
-               name: t('settings', 'Default language')
-       }
+               name: t('settings', 'Default language'),
+       },
 }
 
 export default {
@@ -275,25 +275,25 @@ export default {
                Multiselect,
                InfiniteLoading,
                Actions,
-               ActionButton
+               ActionButton,
        },
        props: {
                users: {
                        type: Array,
-                       default: () => []
+                       default: () => [],
                },
                showConfig: {
                        type: Object,
-                       required: true
+                       required: true,
                },
                selectedGroup: {
                        type: String,
-                       default: null
+                       default: null,
                },
                externalActions: {
                        type: Array,
-                       default: () => []
-               }
+                       default: () => [],
+               },
        },
        data() {
                return {
@@ -301,11 +301,11 @@ export default {
                        defaultQuota,
                        loading: {
                                all: false,
-                               groups: false
+                               groups: false,
                        },
                        scrolled: false,
                        searchQuery: '',
-                       newUser: Object.assign({}, newUser)
+                       newUser: Object.assign({}, newUser),
                }
        },
        computed: {
@@ -344,9 +344,9 @@ export default {
                },
                quotaOptions() {
                        // convert the preset array into objects
-                       let quotaPreset = this.settings.quotaPreset.reduce((acc, cur) => acc.concat({
+                       const quotaPreset = this.settings.quotaPreset.reduce((acc, cur) => acc.concat({
                                id: cur,
-                               label: cur
+                               label: cur,
                        }), [])
                        // add default presets
                        quotaPreset.unshift(this.unlimitedQuota)
@@ -371,14 +371,14 @@ export default {
                        return [
                                {
                                        label: t('settings', 'Common languages'),
-                                       languages: this.settings.languages.commonlanguages
+                                       languages: this.settings.languages.commonlanguages,
                                },
                                {
                                        label: t('settings', 'All languages'),
-                                       languages: this.settings.languages.languages
-                               }
+                                       languages: this.settings.languages.languages,
+                               },
                        ]
-               }
+               },
        },
        watch: {
                // watch url change and group select
@@ -402,7 +402,7 @@ export default {
                        } else if (val === 1 && old === 0) {
                                this.$refs.infiniteLoading.stateChanger.loaded()
                        }
-               }
+               },
        },
        mounted() {
                if (!this.settings.canChangePassword) {
@@ -454,7 +454,7 @@ export default {
                                offset: this.usersOffset,
                                limit: this.usersLimit,
                                group: this.selectedGroup !== 'disabled' ? this.selectedGroup : '',
-                               search: this.searchQuery
+                               search: this.searchQuery,
                        })
                                .then((response) => {
                                        response ? $state.loaded() : $state.complete()
@@ -502,7 +502,7 @@ export default {
                                groups: this.newUser.groups.map(group => group.id),
                                subadmin: this.newUser.subAdminsGroups.map(group => group.id),
                                quota: this.newUser.quota.id,
-                               language: this.newUser.language.code
+                               language: this.newUser.language.code,
                        })
                                .then(() => {
                                        this.resetForm()
@@ -571,7 +571,7 @@ export default {
                },
                onClose() {
                        this.showConfig.showNewUserForm = false
-               }
-       }
+               },
+       },
 }
 </script>