FEATURE: Setting to hide current user from directory (#1)
This commit is contained in:
parent
b2bb6a3790
commit
c4ae5cd32c
|
@ -55,6 +55,9 @@ export default {
|
|||
userCards(allUsers) {
|
||||
if (!allUsers) return [];
|
||||
const toLoad = [];
|
||||
if (settings.hide_current_user && this.currentUser) {
|
||||
allUsers = allUsers.filter((u) => u.id !== this.currentUser.id)
|
||||
}
|
||||
const userCardInfos = allUsers.map(u => {
|
||||
if (this.cachedUserCardInfo[u.id]) {
|
||||
return this.cachedUserCardInfo[u.id];
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
en:
|
||||
theme_metadata:
|
||||
description: Replaces the user directory with a grid of user cards
|
||||
filter_by_group: filter by group
|
||||
settings:
|
||||
hide_current_user: Always hide the current user from the grid
|
||||
filter_by_group: filter by group
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
hide_current_user: false
|
Loading…
Reference in New Issue