From 55179e3ead92d6f33f77478e58cd8cece358fa3c Mon Sep 17 00:00:00 2001 From: Aaron Greenspan Date: Wed, 20 Jan 2021 23:15:04 -0700 Subject: [PATCH] ui: super coooool --- ui/src/app/services/startup-alerts.notifier.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/src/app/services/startup-alerts.notifier.ts b/ui/src/app/services/startup-alerts.notifier.ts index 760d9cc4b..5ba8137f9 100644 --- a/ui/src/app/services/startup-alerts.notifier.ts +++ b/ui/src/app/services/startup-alerts.notifier.ts @@ -22,10 +22,6 @@ export class StartupAlertsNotifier { private readonly osUpdateService: OsUpdateService, ) { } - displayedWelcomeMessage = false - checkedOSForUpdates = false - checkedAppsForUpdates = false - // So. This takes our three checks and filters down to those that should run. // Then, the reduce fires, quickly iterating through yielding a promise (acc) to the next element // Each promise fires more or less concurrently, so each c.check(server) is run concurrently @@ -69,7 +65,7 @@ export class StartupAlertsNotifier { hasRun: false, } - checks: Check[] = [this.welcome, this.apps, this.osUpdate] + checks: Check[] = [this.welcome, this.osUpdate, this.apps] private shouldRunOsWelcome (s: S9Server): boolean { return !s.welcomeAck && s.versionInstalled === this.config.version @@ -178,7 +174,7 @@ type Check = { // executes a check, often requiring api call. It should return a false-y value if there should be no display. check: (s: S9Server) => Promise // display an alert based on the result of the check. - // return false if subsequent modals should be cancelled + // return false if subsequent modals should not be displayed display: (a: T) => Promise // tracks if this check has run in this app instance. hasRun: boolean