mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
fix light/dark theme not currectly initializing on shared report, unify logic
This commit is contained in:
@@ -14,6 +14,7 @@ import { api } from '@/packages/api/src';
|
||||
import { getRandomColorWithSeed } from '@/packages/ui/src/utils/color';
|
||||
import { useReportingStore } from '@/utils/useReporting';
|
||||
import { Head } from '@inertiajs/vue3';
|
||||
import { useTheme } from "@/utils/theme";
|
||||
|
||||
const sharedSecret = ref<string | null>(null);
|
||||
|
||||
@@ -136,6 +137,10 @@ function getGroupLabel(key: string) {
|
||||
return option.value === key;
|
||||
})?.label;
|
||||
}
|
||||
onMounted(async () => {
|
||||
useTheme();
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user