wizard cleanup

This commit is contained in:
Drew Ansbacher
2021-08-19 23:50:24 -06:00
committed by Aiden McClelland
parent 0aa75ee008
commit 88ed581d95
12 changed files with 128 additions and 473 deletions

View File

@@ -10,6 +10,7 @@
<ion-card color="dark">
<ion-card-header class="ion-text-center" style="padding-bottom: 8px;">
<ion-card-title>{{ loading ? 'Loading Embassy Drives' : 'Select Embassy Drive'}}</ion-card-title>
<ion-card-subtitle>Select the drive where all your Embassy data will be stored.</ion-card-subtitle>
</ion-card-header>
<ion-card-content class="ion-margin">

View File

@@ -1,5 +1,5 @@
import { Component } from '@angular/core'
import { AlertController, LoadingController, ModalController, NavController } from '@ionic/angular'
import { AlertController, iosTransitionAnimation, LoadingController, ModalController, NavController } from '@ionic/angular'
import { ApiService, EmbassyDrive } from 'src/app/services/api/api.service'
import { StateService } from 'src/app/services/state.service'
import { PasswordPage } from '../password/password.page'
@@ -19,7 +19,6 @@ export class EmbassyPage {
private readonly navCtrl: NavController,
private modalController: ModalController,
private stateService: StateService,
private readonly alertCtrl: AlertController,
private loadingCtrl: LoadingController
) {}
@@ -54,9 +53,9 @@ export class EmbassyPage {
} finally {
loader.dismiss()
if(!!this.stateService.recoveryDrive) {
await this.navCtrl.navigateForward(`/loading`, { animationDirection: 'forward' })
await this.navCtrl.navigateForward(`/loading`, { animationDirection: 'forward', animation: iosTransitionAnimation })
} else {
await this.navCtrl.navigateForward(`/success`, { animationDirection: 'forward' })
await this.navCtrl.navigateForward(`/success`, { animationDirection: 'forward', animation: iosTransitionAnimation })
}
}
})