added option to reopen tutorial

This commit is contained in:
Nicolas Constant 2020-09-12 14:17:54 -04:00
parent f5f1c2e8f8
commit b4eb092181
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 10 additions and 1 deletions

View File

@ -148,7 +148,8 @@
<h4 class="panel__subtitle">About</h4>
<p class="version">
Sengi version: {{version}}<br />
<a href class="version__link" (click)="checkForUpdates()">check for updates</a>
<a href class="version__link" (click)="openTutorial()">open tutorial</a><br/>
<a href class="version__link" (click)="checkForUpdates()">check for updates</a>
<app-waiting-animation *ngIf="isCheckingUpdates" class="waiting-icon"></app-waiting-animation>
</p>

View File

@ -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 {