diff --git a/src/app/components/floating-column/settings/settings.component.html b/src/app/components/floating-column/settings/settings.component.html index 8977c6a0..193f8845 100644 --- a/src/app/components/floating-column/settings/settings.component.html +++ b/src/app/components/floating-column/settings/settings.component.html @@ -148,7 +148,8 @@

About

Sengi version: {{version}}
- check for updates + open tutorial
+ check for updates

diff --git a/src/app/components/floating-column/settings/settings.component.ts b/src/app/components/floating-column/settings/settings.component.ts index 190a0c56..838135b3 100644 --- a/src/app/components/floating-column/settings/settings.component.ts +++ b/src/app/components/floating-column/settings/settings.component.ts @@ -8,6 +8,7 @@ import { UserNotificationService, NotificationSoundDefinition } from '../../../s import { ServiceWorkerService } from '../../../services/service-worker.service'; import { ContentWarningPolicy, ContentWarningPolicyEnum, TimeLineModeEnum, TimeLineHeaderEnum } from '../../../states/settings.state'; import { NotificationService } from '../../../services/notification.service'; +import { NavigationService } from '../../../services/navigation.service'; @Component({ selector: 'app-settings', @@ -60,6 +61,7 @@ export class SettingsComponent implements OnInit { } constructor( + private readonly navigationService: NavigationService, private formBuilder: FormBuilder, private serviceWorkersService: ServiceWorkerService, private readonly toolsService: ToolsService, @@ -250,6 +252,12 @@ export class SettingsComponent implements OnInit { notifyRestartNeeded(){ this.notificationService.notifyRestartNotification('Reload to apply changes'); } + + openTutorial(): boolean { + localStorage.setItem('tutorial', JSON.stringify(false)); + this.navigationService.closePanel(); + return false; + } } enum ColumnShortcut {