UI: fix telemetry status (#22184)

This commit is contained in:
Michael Geers 2025-07-03 18:16:23 +02:00 • committed by GitHub
parent baadab28ff
commit ab5fbf3fd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ export default defineComponent({
},
computed: {
enabled() {
return settings.telemetry;
return !!settings.telemetry;
},
docsLink() {
return `${docsPrefix()}/docs/faq#telemetry`;

View file

@ -58,7 +58,7 @@ function saveArray(key: string) {
}
export interface Settings {
telemetry: boolean;
telemetry: boolean | null; // status is unknown on start
locale: keyof typeof LOCALES | null;
theme: THEME | null;
unit: string;
@ -78,7 +78,7 @@ export interface Settings {
}
const settings: Settings = reactive({
telemetry: false,
telemetry: null,
locale: read(SETTINGS_LOCALE),
theme: read(SETTINGS_THEME),
unit: read(SETTINGS_UNIT),