mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
wiz guid fix
This commit is contained in:
committed by
Aiden McClelland
parent
d4297b16d2
commit
6eb2dfbb5e
@@ -47,7 +47,7 @@ export class EmbassyPage {
|
||||
}
|
||||
|
||||
async chooseDrive (drive: DiskInfo) {
|
||||
if (!!drive.partitions.find(p => p.used)) {
|
||||
if (!!drive.partitions.find(p => p.used) || !!drive.guid) {
|
||||
const alert = await this.alertCtrl.create({
|
||||
header: 'Warning',
|
||||
subHeader: 'Drive contains data!',
|
||||
|
||||
@@ -43,9 +43,10 @@ export class RecoverPage {
|
||||
|
||||
async getDrives () {
|
||||
try {
|
||||
this.drives = (await this.apiService.getDrives()).filter(d => d.partitions.length)
|
||||
const drives = (await this.apiService.getDrives()).filter(d => d.partitions.length)
|
||||
this.drives = drives.filter(d => d.partitions.length)
|
||||
|
||||
const importableDrive = this.drives.find(d => !!d.guid)
|
||||
const importableDrive = drives.find(d => !!d.guid)
|
||||
if (!!importableDrive && !this.hasShownGuidAlert) {
|
||||
const alert = await this.alertCtrl.create({
|
||||
header: 'Embassy Drive Detected',
|
||||
|
||||
Reference in New Issue
Block a user