mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-18 17:32:26 +01:00
fix:#30 updated files in pwa
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
import { defineStore } from "pinia";
|
||||
import { useLocalStorage } from "@vueuse/core";
|
||||
import router from "@/router";
|
||||
import {router} from "@/main.ts";
|
||||
|
||||
const settingsStore = defineStore("settingsStore", {
|
||||
state: () => {
|
||||
@@ -33,9 +33,6 @@ const settingsStore = defineStore("settingsStore", {
|
||||
setDarkMode(isDark: boolean) {
|
||||
this.isDark = isDark;
|
||||
},
|
||||
getDarkMode(): boolean {
|
||||
return this.isDark;
|
||||
},
|
||||
setDefaultPage(page: {
|
||||
label: string;
|
||||
value: string;
|
||||
@@ -51,7 +48,7 @@ const settingsStore = defineStore("settingsStore", {
|
||||
label: string;
|
||||
value: string;
|
||||
}[] = [];
|
||||
router.getRoutes().forEach((route) => {
|
||||
router.options.routes.forEach((route) => {
|
||||
if (route.name) {
|
||||
if (typeof route.name === "string") {
|
||||
options.push({
|
||||
|
||||
Reference in New Issue
Block a user