mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
guid and new alert flow
This commit is contained in:
committed by
Aiden McClelland
parent
a5266c2e41
commit
7576b30a6b
@@ -24,19 +24,19 @@ export class BackupService {
|
||||
try {
|
||||
const drives = await this.embassyApi.getDrives({ })
|
||||
this.drives = drives
|
||||
.filter(d => !d.internal)
|
||||
.map(d => {
|
||||
const partionInfo: MappedPartitionInfo[] = d.partitions.map(p => {
|
||||
.filter(d => !d.guid)
|
||||
.map(d => {
|
||||
const partionInfo: MappedPartitionInfo[] = d.partitions.map(p => {
|
||||
return {
|
||||
...p,
|
||||
hasBackup: [0, 1].includes(this.emver.compare(p['embassy-os']?.version, '0.3.0')),
|
||||
}
|
||||
})
|
||||
return {
|
||||
...p,
|
||||
hasBackup: [0, 1].includes(this.emver.compare(p['embassy-os']?.version, '0.3.0')),
|
||||
...d,
|
||||
partitions: partionInfo,
|
||||
}
|
||||
})
|
||||
return {
|
||||
...d,
|
||||
partitions: partionInfo,
|
||||
}
|
||||
})
|
||||
} catch (e) {
|
||||
this.loadingError = getErrorMessage(e)
|
||||
} finally {
|
||||
|
||||
@@ -990,7 +990,7 @@ export module Mock {
|
||||
},
|
||||
],
|
||||
capacity: 1000000000000,
|
||||
internal: true,
|
||||
guid: 'asdfasdf',
|
||||
},
|
||||
{
|
||||
logicalname: '/dev/sdb',
|
||||
@@ -1016,7 +1016,7 @@ export module Mock {
|
||||
},
|
||||
],
|
||||
capacity: 10000000000,
|
||||
internal: false,
|
||||
guid: null,
|
||||
},
|
||||
]
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ export interface DriveInfo {
|
||||
model: string | null
|
||||
partitions: PartitionInfo[]
|
||||
capacity: number
|
||||
internal: boolean
|
||||
guid: string | null
|
||||
}
|
||||
|
||||
export interface PartitionInfo {
|
||||
|
||||
Reference in New Issue
Block a user