feat: remove query based routing
This commit is contained in:
@@ -5,13 +5,25 @@ const props = defineProps<{
|
||||
}>();
|
||||
|
||||
const settingsStore = useSettingsStore();
|
||||
const menusContext = inject<{
|
||||
isSubmenuSelected: ComputedRef<boolean>;
|
||||
selectedSubmenuParent: ComputedRef<string | null>;
|
||||
}>("menusContext")!;
|
||||
|
||||
const { assets } = useAssets();
|
||||
|
||||
const isOpen = computed(() => settingsStore.isMenuOpen("clock"));
|
||||
const isAnyOtherMenuOpen = computed(() =>
|
||||
settingsStore.isAnyOtherMenuOpen("clock"),
|
||||
const isOpen = computed(
|
||||
() => settingsStore.currentMenu === "clock" && settingsStore.menuExpanded,
|
||||
);
|
||||
const isAnyOtherMenuOpen = computed(() => {
|
||||
if (settingsStore.currentSubMenu) {
|
||||
return !settingsStore.currentSubMenu.startsWith("clock");
|
||||
}
|
||||
if (menusContext.isSubmenuSelected.value) {
|
||||
return menusContext.selectedSubmenuParent.value !== "clock";
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
const animation = useMenuAnimation("clock", isOpen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user