mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
fixes #329
This commit is contained in:
parent
15d011f13d
commit
3f56a68dd4
1 changed files with 5 additions and 1 deletions
|
@ -156,7 +156,7 @@ export default {
|
||||||
const testVal = this.$route.path.split("/");
|
const testVal = this.$route.path.split("/");
|
||||||
if (testVal[1] === "recipe") this.closeSidebar();
|
if (testVal[1] === "recipe") this.closeSidebar();
|
||||||
else this.resetView();
|
else this.resetView();
|
||||||
|
|
||||||
return !(testVal[1] === "admin");
|
return !(testVal[1] === "admin");
|
||||||
},
|
},
|
||||||
customPages() {
|
customPages() {
|
||||||
|
@ -191,6 +191,7 @@ export default {
|
||||||
return this.isMain ? this.mainMenu : this.adminMenu;
|
return this.isMain ? this.mainMenu : this.adminMenu;
|
||||||
},
|
},
|
||||||
userProfileImage() {
|
userProfileImage() {
|
||||||
|
this.resetImage();
|
||||||
return `api/users/${this.user.id}/image`;
|
return `api/users/${this.user.id}/image`;
|
||||||
},
|
},
|
||||||
newVersionAvailable() {
|
newVersionAvailable() {
|
||||||
|
@ -206,6 +207,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
resetImage() {
|
||||||
|
this.hideImage == false;
|
||||||
|
},
|
||||||
resetView() {
|
resetView() {
|
||||||
this.mobile = this.viewScale();
|
this.mobile = this.viewScale();
|
||||||
this.showSidebar = !this.viewScale();
|
this.showSidebar = !this.viewScale();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue