mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix drive display for guid
This commit is contained in:
committed by
Aiden McClelland
parent
15063af0e5
commit
e2d932f483
@@ -23,8 +23,8 @@ export class RecoverPage {
|
|||||||
private readonly modalController: ModalController,
|
private readonly modalController: ModalController,
|
||||||
private readonly alertCtrl: AlertController,
|
private readonly alertCtrl: AlertController,
|
||||||
private readonly loadingCtrl: LoadingController,
|
private readonly loadingCtrl: LoadingController,
|
||||||
readonly stateService: StateService,
|
|
||||||
private readonly errorToastService: ErrorToastService,
|
private readonly errorToastService: ErrorToastService,
|
||||||
|
public readonly stateService: StateService,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
async ngOnInit () {
|
async ngOnInit () {
|
||||||
@@ -43,7 +43,7 @@ export class RecoverPage {
|
|||||||
|
|
||||||
async getDrives () {
|
async getDrives () {
|
||||||
try {
|
try {
|
||||||
const drives = (await this.apiService.getDrives()).filter(d => d.partitions.length)
|
const drives = await this.apiService.getDrives()
|
||||||
this.drives = drives.filter(d => d.partitions.length)
|
this.drives = drives.filter(d => d.partitions.length)
|
||||||
|
|
||||||
const importableDrive = drives.find(d => !!d.guid)
|
const importableDrive = drives.find(d => !!d.guid)
|
||||||
|
|||||||
Reference in New Issue
Block a user