import { Component } from '@angular/core' ; import { ErrorCategory , handleErrorLocal } from '../../services/error-handler/error-handler.service' ; import { NavigationService } from '../../services/navigation/navigation.service' ; import { VaultStorageKey , VaultStorageService } from '../../services/storage/storage.service' ; @ Component ( { selector : 'airgap-secret-generate-onboarding' , templateUrl : './secret-generate-onboarding.page.html' , styleUrls : [ './secret-generate-onboarding.page.scss' ] } ) export class SecretGenerateOnboardingPage { constructor ( private readonly navigationService , private readonly storageService ) { } public async continue ( ) { await this . storageService . set ( VaultStorageKey . DISCLAIMER_GENERATE_INITIAL , true ) ; this . navigationService . route ( 'secret-generate' ) . catch ( handleErrorLocal ( ErrorCategory . IONIC_NAVIGATION ) ) ; } }