From 0479670c5259832598b8f06a601da0ac8b2cbb52 Mon Sep 17 00:00:00 2001 From: Graham Steffaniak <42989099+gtsteffaniak@users.noreply.github.com> Date: Sat, 3 Aug 2024 15:04:50 -0500 Subject: [PATCH] fix overlay bug, share bug (#161) --- frontend/src/api/users.js | 3 + frontend/src/components/Search.vue | 25 +++---- frontend/src/components/Sidebar.vue | 112 ++++++++++++++++------------ frontend/src/store/getters.js | 16 +++- frontend/src/store/mutations.js | 5 ++ frontend/src/store/state.js | 1 + frontend/src/views/Layout.vue | 12 ++- 7 files changed, 107 insertions(+), 67 deletions(-) diff --git a/frontend/src/api/users.js b/frontend/src/api/users.js index 6a827713..b5f554bf 100644 --- a/frontend/src/api/users.js +++ b/frontend/src/api/users.js @@ -27,6 +27,9 @@ export async function update(user, which = ["all"]) { if (which[0] != "password") { user.password = ""; } + if (user.username == "publicUser") { + return + } console.log("updating user",user,which) await fetchURL(`/api/users/${user.id}`, { method: "PUT", diff --git a/frontend/src/components/Search.vue b/frontend/src/components/Search.vue index 14233098..ffb09157 100644 --- a/frontend/src/components/Search.vue +++ b/frontend/src/components/Search.vue @@ -29,7 +29,12 @@ -