zwischenstand

This commit is contained in:
2024-02-13 16:36:09 +00:00
parent 7d8a07e8c4
commit efb67be9fe
184 changed files with 15832 additions and 1359 deletions

View File

@@ -0,0 +1,15 @@
import { api } from "../../../api"
import { navigation, serviceNavigation } from "../../store"
export async function loadNavigationAndSetStores(): Promise<null> {
const navigations = await api<Navigation[]>("navigation", {})
let navigationStore: NavElement[] = []
let serviceNavigationStore: NavElement[] = []
navigations.data.forEach((nav: Navigation) => {
if (nav.tree == 0) navigationStore = nav.elements
else if (nav.tree == 1) serviceNavigationStore = nav.elements
})
navigation.set(navigationStore)
serviceNavigation.set(serviceNavigationStore)
return null
}