From ad5be18bb460f6f1d4be0f0307bc0201d50e7c53 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Wed, 23 Feb 2022 17:09:49 -0700 Subject: [PATCH] auto check automatic --- frontend/projects/ui/src/app/app.component.ts | 2 +- .../pages/server-routes/preferences/preferences.page.html | 6 +++--- frontend/projects/ui/src/app/services/api/mock-patch.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/projects/ui/src/app/app.component.ts b/frontend/projects/ui/src/app/app.component.ts index 419622c8e..808072db1 100644 --- a/frontend/projects/ui/src/app/app.component.ts +++ b/frontend/projects/ui/src/app/app.component.ts @@ -215,7 +215,7 @@ export class AppComponent { } private checkForEosUpdate(ui: UIData): void { - if (ui['auto-check-updates']) { + if (ui['auto-check-updates'] !== false) { this.eosService.getEOS() } } diff --git a/frontend/projects/ui/src/app/pages/server-routes/preferences/preferences.page.html b/frontend/projects/ui/src/app/pages/server-routes/preferences/preferences.page.html index 85af3bb34..8900117c2 100644 --- a/frontend/projects/ui/src/app/pages/server-routes/preferences/preferences.page.html +++ b/frontend/projects/ui/src/app/pages/server-routes/preferences/preferences.page.html @@ -18,12 +18,12 @@ Marketplace Auto Check for Updates {{ patch.data.ui['auto-check-updates'] ? 'Enabled' : 'Disabled' - }}{{ patch.data.ui['auto-check-updates'] !== false ? 'Enabled' : + 'Disabled' }} diff --git a/frontend/projects/ui/src/app/services/api/mock-patch.ts b/frontend/projects/ui/src/app/services/api/mock-patch.ts index 06c548334..1ef6b9624 100644 --- a/frontend/projects/ui/src/app/services/api/mock-patch.ts +++ b/frontend/projects/ui/src/app/services/api/mock-patch.ts @@ -11,7 +11,7 @@ import { export const mockPatchData: DataModel = { ui: { name: `Matt's Embassy`, - 'auto-check-updates': true, + 'auto-check-updates': undefined, 'pkg-order': [], 'ack-welcome': '1.0.0', marketplace: undefined,