mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-31 12:15:42 -04:00
* updated the sidebar; on mobile devices, the sidebar will be closed by default * updated the AppSideBar * change variable name Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
2a797a210b
commit
703cfd7da2
@ -176,13 +176,20 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, context) {
|
setup(props, context) {
|
||||||
// V-Model Support
|
// V-Model Support
|
||||||
const drawer = computed({
|
const drawer = computed({
|
||||||
get: () => {
|
get: () => {
|
||||||
return props.value;
|
return props.value;
|
||||||
},
|
},
|
||||||
set: (val) => {
|
set: (val) => {
|
||||||
context.emit("input", val);
|
if(window.innerWidth < 760 && state.hasOpenedBefore === false){
|
||||||
|
state.hasOpenedBefore = true;
|
||||||
|
val = false
|
||||||
|
context.emit("input", val);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
context.emit("input", val);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -191,6 +198,7 @@ export default defineComponent({
|
|||||||
topSelected: null as string[] | null,
|
topSelected: null as string[] | null,
|
||||||
secondarySelected: null as string[] | null,
|
secondarySelected: null as string[] | null,
|
||||||
bottomSelected: null as string[] | null,
|
bottomSelected: null as string[] | null,
|
||||||
|
hasOpenedBefore: false as boolean,
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user