ui: remove eject from backups

This commit is contained in:
Aaron Greenspan
2021-01-20 10:11:13 -07:00
committed by Aiden McClelland
parent 47e5951fc3
commit df05fade25
4 changed files with 10 additions and 11 deletions

View File

@@ -27,7 +27,7 @@
<ion-spinner *ngIf="loading" class="center" name="lines" color="warning"></ion-spinner>
<ng-container *ngIf="!loading">
<ion-item *ngIf="app.restoreAlert as restore" class="notifier-item" style="box-shadow: 0 0 5px 1px var(--ion-color-danger); margin-bottom: 40px">
<ion-item *ngIf="type === 'restore' && app.restoreAlert as restore" class="notifier-item" style="box-shadow: 0 0 5px 1px var(--ion-color-danger); margin-bottom: 40px">
<ion-label class="ion-text-wrap">
<h2 style="display: flex; align-items: center; margin-bottom: 3px;">
<ion-icon style="margin-right: 5px;" slot="start" color="danger" slot="start" name="warning-outline"></ion-icon>

View File

@@ -1,5 +1,5 @@
import { Component, Input } from '@angular/core'
import { ModalController, AlertController, LoadingController, IonicSafeString, ToastController } from '@ionic/angular'
import { ModalController, AlertController, LoadingController, ToastController } from '@ionic/angular'
import { AppModel, AppStatus } from 'src/app/models/app-model'
import { AppInstalledFull } from 'src/app/models/app-types'
import { ApiService } from 'src/app/services/api/api.service'
@@ -98,7 +98,8 @@ export class AppBackupPage {
m.onWillDismiss().then(res => {
const data = res.data
if (data.cancel) return
return this.create(disk, partition, data.password, data.eject)
// we hard code the 'eject' last argument to be false, until ejection is an option in the UI.
return this.create(disk, partition, data.password, false)
})
return await m.present()