mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
69 lines
2.6 KiB
HTML
69 lines
2.6 KiB
HTML
<ion-header>
|
|
<ion-toolbar>
|
|
<ion-buttons slot="start">
|
|
<pwa-back-button></pwa-back-button>
|
|
</ion-buttons>
|
|
<ion-title>Create Backup</ion-title>
|
|
<ion-buttons slot="end">
|
|
<ion-button (click)="doRefresh()">
|
|
<ion-icon slot="icon-only" name="refresh-outline"></ion-icon>
|
|
</ion-button>
|
|
</ion-buttons>
|
|
</ion-toolbar>
|
|
</ion-header>
|
|
|
|
<ion-content class="ion-padding-top">
|
|
<text-spinner *ngIf="loading; else loaded" text="Loading Drives"></text-spinner>
|
|
|
|
<ng-template #loaded>
|
|
|
|
<ion-item class="ion-margin-bottom">
|
|
<ion-label class="ion-text-wrap">
|
|
<p class="ion-padding-bottom">About</p>
|
|
<h2>
|
|
Create frequent backups of your Embassy to avoid loss of data.
|
|
</h2>
|
|
</ion-label>
|
|
</ion-item>
|
|
|
|
<ion-item-divider>Select Backup Drive</ion-item-divider>
|
|
|
|
<ion-item *ngIf="allPartitionsMounted">
|
|
<ion-text *ngIf="type === 'create'" class="ion-text-wrap" color="warning">No partitions available. To begin a backup, insert a storage device into your Embassy.</ion-text>
|
|
<ion-text *ngIf="type === 'restore'" class="ion-text-wrap" color="warning">No partitions available. Insert the storage device containing the backup you wish to restore.</ion-text>
|
|
</ion-item>
|
|
|
|
<ion-grid>
|
|
<ion-row>
|
|
<ion-col *ngFor="let disk of disks | keyvalue" sizeSm="12" sizeMd="6">
|
|
<ion-card>
|
|
<ion-card-header>
|
|
<ion-card-title>
|
|
{{ disk.value.size }}
|
|
</ion-card-title>
|
|
<ion-card-subtitle>
|
|
{{ disk.key }}
|
|
</ion-card-subtitle>
|
|
</ion-card-header>
|
|
<ion-card-content>
|
|
<ion-item-group>
|
|
<ion-item button *ngFor="let partition of disk.value.partitions | keyvalue" [disabled]="partition.value['is-mounted']" (click)="presentModal(partition.key)">
|
|
<ion-icon slot="start" name="save-outline"></ion-icon>
|
|
<ion-label>
|
|
<h2>{{ partition.value.label || partition.key }} ({{ partition.value.size || 'unknown size' }})</h2>
|
|
<p *ngIf="!partition.value['is-mounted']; else unavailable"><ion-text color="success">Available</ion-text></p>
|
|
<ng-template #unavailable>
|
|
<p><ion-text color="danger">Unavailable</ion-text></p>
|
|
</ng-template>
|
|
</ion-label>
|
|
</ion-item>
|
|
</ion-item-group>
|
|
</ion-card-content>
|
|
</ion-card>
|
|
</ion-col>
|
|
</ion-row>
|
|
</ion-grid>
|
|
</ng-template>
|
|
|
|
</ion-content>
|