mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 13:06:08 +02:00
feat: add folder navigation and improve menu item handling (#1498)
This commit is contained in:
@@ -24,15 +24,6 @@ export const useUiStore = defineStore('Ui', () => {
|
||||
const notifiedMenus = ref([]);
|
||||
const shiftHeld = ref(false);
|
||||
const trayIconNotify = ref(false);
|
||||
const socialRouteNames = ['friend-log', 'friend-list', 'moderation'];
|
||||
const favoriteRouteNames = [
|
||||
'favorite-friends',
|
||||
'favorite-worlds',
|
||||
'favorite-avatars'
|
||||
];
|
||||
const lastVisitedSocialRoute = ref(socialRouteNames[0]);
|
||||
const lastVisitedFavoritesRoute = ref(favoriteRouteNames[0]);
|
||||
|
||||
watch(
|
||||
() => watchState.isLoggedIn,
|
||||
(isLoggedIn) => {
|
||||
@@ -63,11 +54,6 @@ export const useUiStore = defineStore('Ui', () => {
|
||||
if (name === 'notification') {
|
||||
notificationStore.unseenNotifications = [];
|
||||
}
|
||||
if (socialRouteNames.includes(name)) {
|
||||
lastVisitedSocialRoute.value = name;
|
||||
} else if (favoriteRouteNames.includes(name)) {
|
||||
lastVisitedFavoritesRoute.value = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -96,8 +82,6 @@ export const useUiStore = defineStore('Ui', () => {
|
||||
return {
|
||||
notifiedMenus,
|
||||
shiftHeld,
|
||||
lastVisitedSocialRoute,
|
||||
lastVisitedFavoritesRoute,
|
||||
|
||||
notifyMenu,
|
||||
removeNotify
|
||||
|
||||
Reference in New Issue
Block a user