fe fixes profil

This commit is contained in:
Florinda
2024-10-28 09:52:50 +01:00
parent 04c7a8f8db
commit db273edff9
5 changed files with 37 additions and 17 deletions

View File

@@ -8,7 +8,7 @@ import AppSidebar from './AppSidebar.vue';
import AppTopbar from './AppTopbar.vue';
const { layoutConfig, layoutState, isSidebarActive, resetMenu } = useLayout();
const { hideMenu, layoutConfig, layoutState, isSidebarActive, resetMenu } = useLayout();
const outsideClickListener = ref(null);
const page = ref("progetti");
@@ -16,6 +16,7 @@ const userPrefStore = UserPrefStore();
const route = useRoute();
onMounted(() => {
userPrefStore.fetchUserData();
});
@@ -28,6 +29,12 @@ watch(isSidebarActive, (newVal) => {
}
});
watch(route, (newRoute) => {
if (newRoute.path === '/projects') {
hideMenu();
}
});
const containerClass = computed(() => {
return {
'layout-theme-light': !layoutConfig.darkTheme,