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 @@ -
+
Search Context: {{ getContext }}
@@ -97,7 +102,7 @@
-
+
Search Context: {{ getContext }}
@@ -241,7 +246,6 @@ export default { { label: "Archives", value: "type:archive" }, ], value: "", - width: window.innerWidth, ongoing: false, results: [], reload: false, @@ -299,7 +303,8 @@ export default { return this.isTypeSelectDisabled; }, active() { - return getters.currentPromptName() === "search"; + console.log("calling active ", getters.currentPromptName()); + return getters.currentPromptName() == "search"; }, showOverlay() { return getters.currentPrompt() !== null && getters.currentPromptName() !== "more"; @@ -342,11 +347,7 @@ export default { return path; }, }, - methods: { - handleResize() { - this.width = window.innerWidth; - }, async navigateTo(url) { mutations.closeHovers(); await this.$nextTick(); @@ -403,7 +404,7 @@ export default { return false; } this.searchTypes = this.searchTypes.replace(string + " ", ""); - if (this.isMobile) { + if (state.isMobile) { this.$refs.input.focus(); } }, @@ -447,12 +448,6 @@ export default { this.showHelp = !this.showHelp; }, }, - mounted() { - window.addEventListener("resize", this.handleResize); - }, - beforeUnmount() { - window.removeEventListener("resize", this.handleResize); - }, }; diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index d2c80d68..99b889c3 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -4,45 +4,49 @@ :class="{ active: active, 'dark-mode': isDarkMode, sticky: user?.stickySidebar }" >
- +
+ +
- -
- {{ hoverText }} -
-
- ads_click -
-
- dark_mode -
-
- push_pin +
+
+ {{ hoverText }} +
+
+ ads_click +
+
+ dark_mode +
+
+ push_pin +
-
+