From 3f56a68dd4126a03cedb5711b56e3bedd03ae831 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Sat, 24 Apr 2021 15:00:43 -0800 Subject: [PATCH] fixes #329 --- frontend/src/components/UI/TheSidebar.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/UI/TheSidebar.vue b/frontend/src/components/UI/TheSidebar.vue index 3e7a32c52..f08b0f73a 100644 --- a/frontend/src/components/UI/TheSidebar.vue +++ b/frontend/src/components/UI/TheSidebar.vue @@ -156,7 +156,7 @@ export default { const testVal = this.$route.path.split("/"); if (testVal[1] === "recipe") this.closeSidebar(); else this.resetView(); - + return !(testVal[1] === "admin"); }, customPages() { @@ -191,6 +191,7 @@ export default { return this.isMain ? this.mainMenu : this.adminMenu; }, userProfileImage() { + this.resetImage(); return `api/users/${this.user.id}/image`; }, newVersionAvailable() { @@ -206,6 +207,9 @@ export default { }, methods: { + resetImage() { + this.hideImage == false; + }, resetView() { this.mobile = this.viewScale(); this.showSidebar = !this.viewScale();