get label

This commit is contained in:
Drew Ansbacher
2021-09-14 09:24:29 -06:00
committed by Matt Hill
parent 0269bc177b
commit bcaa6095bc
4 changed files with 4 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ export class EmbassyPage {
await modal.present();
}
getLabelLabel(drive: DiskInfo) {
getLabel(drive: DiskInfo) {
const labels = drive.partitions.map(p => p.label).filter(l => !!l)
return labels.length ? labels.join(' / ') : 'unnamed'
}