From 40e61b5f59740ac67ccd8a495d867f8b715a0b20 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 5 Jul 2021 07:10:58 +0200 Subject: [PATCH] [enh] Filter by groups --- app/src/views/user/UserList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/views/user/UserList.vue b/app/src/views/user/UserList.vue index 2b81fbb5..7e43a2b1 100644 --- a/app/src/views/user/UserList.vue +++ b/app/src/views/user/UserList.vue @@ -48,7 +48,7 @@ export default { data () { return { queries: [ - ['GET', { uri: 'users' }] + ['GET', { uri: 'users?fields=username&fields=fullname&fields=mail&fields=mailbox-quota&fields=shell&fields=groups' }] ], search: '' } @@ -61,7 +61,7 @@ export default { if (!this.users) return const search = this.search.toLowerCase() const filtered = this.users.filter(user => { - return user.username.toLowerCase().includes(search) + return user.username.toLowerCase().includes(search) || user.groups.includes(search) }) return filtered.length === 0 ? null : filtered }