Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

perf: hide anonymousUser in user management list #844

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/modules/system/users/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ const userStore = useUserStore();

let fuse: Fuse<User> | undefined = undefined;

const ANONYMOUSUSER_NAME = "anonymousUser";

const handleFetchUsers = async (options?: { mute?: boolean }) => {
try {
clearInterval(refreshInterval.value);
Expand All @@ -69,6 +71,7 @@ const handleFetchUsers = async (options?: { mute?: boolean }) => {
const { data } = await apiClient.extension.user.listv1alpha1User({
page: users.value.page,
size: users.value.size,
fieldSelector: [`name!=${ANONYMOUSUSER_NAME}`],
});
users.value = data;

Expand Down