This commit is contained in:
Matt Hill
2022-01-18 13:38:06 -07:00
committed by Aiden McClelland
parent fc081f1924
commit ebfea51571
16 changed files with 58 additions and 31 deletions

View File

@@ -22,7 +22,7 @@ v8.0.0
`cd ui/`
`npm --prefix . install @ionic/cli`
`npm install -g @ionic/cli`
`npm --prefix . install`

View File

@@ -1,6 +1,6 @@
<ion-header>
<ion-toolbar>
<ion-title>Select Services to Recover</ion-title>
<ion-title>Select Services to Restore</ion-title>
<ion-buttons slot="end">
<ion-button (click)="dismiss()">
<ion-icon slot="icon-only" name="close"></ion-icon>
@@ -17,7 +17,7 @@
<p>Version {{ option.version }}</p>
<p>Backup made: {{ option.timestamp | date : 'short' }}</p>
<p *ngIf="!option.installed && !option['newer-eos']">
<ion-text color="success">Ready to recover</ion-text>
<ion-text color="success">Ready to restore</ion-text>
</p>
<p *ngIf="option.installed">
<ion-text color="warning">Unavailable. {{ option.title }} is already installed.</ion-text>
@@ -34,8 +34,8 @@
<ion-footer>
<ion-toolbar>
<ion-buttons slot="end" class="ion-padding-end">
<ion-button [disabled]="!hasSelection" fill="outline" (click)="recover()" class="enter-click">
Recover Selected
<ion-button [disabled]="!hasSelection" fill="outline" (click)="restore()" class="enter-click">
Restore Selected
</ion-button>
</ion-buttons>
</ion-toolbar>

View File

@@ -55,14 +55,14 @@ export class AppRecoverSelectPage {
this.hasSelection = this.options.some(o => o.checked)
}
async recover (): Promise<void> {
async restore (): Promise<void> {
const ids = this.options
.filter(option => !!option.checked)
.map(option => option.id)
const loader = await this.loadingCtrl.create({
spinner: 'lines',
message: 'Beginning service recovery...',
message: 'Beginning restoration...',
cssClass: 'loader',
})
await loader.present()