mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
get label
This commit is contained in:
committed by
Matt Hill
parent
0269bc177b
commit
bcaa6095bc
@@ -44,7 +44,7 @@
|
||||
<ion-icon slot="start" name="save-outline"></ion-icon>
|
||||
<ion-label class="ion-text-wrap">
|
||||
<h1>{{ drive.logicalname }}</h1>
|
||||
<h2 style="min-height: 19px;">{{ getLabelLabel(drive) }}</h2>
|
||||
<h2 style="min-height: 19px;">{{ getLabel(drive) }}</h2>
|
||||
<p> Using {{ getUsage(drive) }} of {{drive.capacity.toFixed(2)}} GiB</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<form (ngSubmit)="!!recoveryDrive ? verifyPw() : submitPw()">
|
||||
<div style="padding: 8px 24px;">
|
||||
<p *ngIf="!!embassyDrive">Choose a password for your embassy. You will need it every time you log in. If you lose it you will be permanently locked out of your embassy.</p>
|
||||
<p *ngIf="embassyDrive && getUsage(embassyDrive) > 0" style="padding-bottom: 15px;color: var(--ion-color-warning);"><b>Warning:</b> After submit, any data currently stored on <b>{{ getLabelLabel(embassyDrive) }}</b> will be wiped.</p>
|
||||
<p *ngIf="embassyDrive && getUsage(embassyDrive) > 0" style="padding-bottom: 15px;color: var(--ion-color-warning);"><b>Warning:</b> After submit, any data currently stored on <b>{{ getLabel(embassyDrive) }}</b> will be wiped.</p>
|
||||
|
||||
<h4 class="input-label">
|
||||
Password:
|
||||
|
||||
@@ -84,7 +84,7 @@ export class PasswordPage {
|
||||
this.modalController.dismiss()
|
||||
}
|
||||
|
||||
getLabelLabel(drive: DiskInfo) {
|
||||
getLabel(drive: DiskInfo) {
|
||||
const labels = drive.partitions.map(p => p.label).filter(l => !!l)
|
||||
return labels.length ? labels.join(' / ') : 'unnamed'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user