diff --git a/src/Squidex/app/features/apps/pages/apps-page.component.ts b/src/Squidex/app/features/apps/pages/apps-page.component.ts index 275437e7a..b8dbd8a16 100644 --- a/src/Squidex/app/features/apps/pages/apps-page.component.ts +++ b/src/Squidex/app/features/apps/pages/apps-page.component.ts @@ -42,29 +42,31 @@ export class AppsPageComponent implements OnInit { } public ngOnInit() { - this.appsState.apps.pipe( - take(1)) + const shouldShowOnboarding = this.onboardingService.shouldShow('dialog'); + + this.appsState.apps.pipe(take(1)) .subscribe(apps => { - if (this.onboardingService.shouldShow('dialog')) { - if (apps.length === 0) { - this.onboardingService.disable('dialog'); - this.onboardingDialog.show(); - } - } else { - const newsVersion = this.localStore.getInt('squidex.news.version'); + if (shouldShowOnboarding && apps.length === 0) { + this.onboardingService.disable('dialog'); + this.onboardingDialog.show(); + } + }); - this.newsService.getFeatures(newsVersion).subscribe(result => { - if (result.version !== newsVersion) { - if (result.features.length > 0) { - this.newsFeatures = result.features; - this.newsDialog.show(); - } + if (!shouldShowOnboarding) { + const newsVersion = this.localStore.getInt('squidex.news.version'); - this.localStore.setInt('squidex.news.version', result.version); + this.newsService.getFeatures(newsVersion) + .subscribe(result => { + if (result.version !== newsVersion) { + if (result.features.length > 0) { + this.newsFeatures = result.features; + this.newsDialog.show(); } - }); - } - }); + + this.localStore.setInt('squidex.news.version', result.version); + } + }); + } } public createNewApp(template: string) { diff --git a/src/Squidex/app/features/apps/pages/news-dialog.component.html b/src/Squidex/app/features/apps/pages/news-dialog.component.html index 1fbd2b569..ae21142e0 100644 --- a/src/Squidex/app/features/apps/pages/news-dialog.component.html +++ b/src/Squidex/app/features/apps/pages/news-dialog.component.html @@ -1,4 +1,4 @@ - + New Features