From 1732e5403b5df6b9ba8d66eaae474c41eb80c769 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Tue, 5 Oct 2021 15:07:59 -0600 Subject: [PATCH] fix metrics again --- .../pages/server-routes/server-metrics/server-metrics.page.ts | 3 +++ ui/src/app/services/server-config.service.ts | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/app/pages/server-routes/server-metrics/server-metrics.page.ts b/ui/src/app/pages/server-routes/server-metrics/server-metrics.page.ts index f48fe0fd8..24d7adfa0 100644 --- a/ui/src/app/pages/server-routes/server-metrics/server-metrics.page.ts +++ b/ui/src/app/pages/server-routes/server-metrics/server-metrics.page.ts @@ -49,6 +49,9 @@ export class ServerMetricsPage { try { const metrics = await this.embassyApi.getServerMetrics({ }) Object.entries(metrics).forEach(([groupKey, groupVal]) => { + if (!this.metrics[groupKey]) { + this.metrics[groupKey] = groupVal + } Object.entries(groupVal).forEach(([key, val]) => { this.metrics[groupKey][key] = val }) diff --git a/ui/src/app/services/server-config.service.ts b/ui/src/app/services/server-config.service.ts index a200bace0..0c3d5c280 100644 --- a/ui/src/app/services/server-config.service.ts +++ b/ui/src/app/services/server-config.service.ts @@ -120,7 +120,7 @@ export const serverConfig: ConfigSpec = { 'auto-check-updates': { type: 'boolean', name: 'Auto Check for Updates', - description: 'On launch, EmbassyOS will automatically check for updates of itself and your installed services. Updating still requires your approval and action. Updates will never be performed automatically.', + description: 'If enabled, EmbassyOS will automatically check for updates of itself and any installed services. Updating will still require your approval and action. Updates will never be performed automatically.', default: true, }, // 'eos-marketplace': { @@ -144,7 +144,7 @@ export const serverConfig: ConfigSpec = { 'share-stats': { type: 'boolean', name: 'Report Bugs', - description: new IonicSafeString(`Bug reports are anonymized and transmitted over Tor. This helps us identify and fix bugs quickly. Read more `) as any, // @TODO get actual link + description: new IonicSafeString(`If enabled, generic error codes will be anonymously transmitted over Tor to the Start9 team. This helps us identify and fix bugs quickly. Read more `) as any, // @TODO get actual link default: false, }, // password: {