mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
<ion-header>
|
|
<ion-toolbar>
|
|
<ion-title>
|
|
Setup Wizard
|
|
</ion-title>
|
|
</ion-toolbar>
|
|
</ion-header>
|
|
<ion-content>
|
|
<div *ngIf="!stateService.dataDrive && dataDrives">
|
|
<div *ngIf="!dataDrives.length">
|
|
<h2 color="light">No data drives found</h2>
|
|
<p color="light">Please connect a data drive to your embassy and refresh the page.</p>
|
|
</div>
|
|
<div *ngIf="dataDrives.length">
|
|
<h2 color="light">Select Data Drive</h2>
|
|
<ion-card
|
|
*ngFor="let drive of dataDrives"
|
|
(click)="selectDrive(drive)"
|
|
button="true"
|
|
[class.selected]="selectedDrive?.logicalname === drive.logicalname"
|
|
color="light"
|
|
>
|
|
<ion-card-header>
|
|
<ion-card-title>{{drive.logicalname}}</ion-card-title>
|
|
<ion-card-subtitle>{{drive.labels}}</ion-card-subtitle>
|
|
</ion-card-header>
|
|
|
|
<ion-card-content>
|
|
Currently using {{drive.used}} out of {{drive.capacity}} bytes.
|
|
</ion-card-content>
|
|
</ion-card>
|
|
<ion-button (click)="warn()" color="primary" [disabled]="!selectedDrive">Next</ion-button>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="stateService.dataDrive">
|
|
<ion-card
|
|
(click)="presentPasswordModal()"
|
|
button="true"
|
|
color="light"
|
|
>
|
|
<ion-card-header>
|
|
<ion-card-title>Start Fresh</ion-card-title>
|
|
<ion-card-subtitle>Get started with a brand new Embassy</ion-card-subtitle>
|
|
</ion-card-header>
|
|
</ion-card>
|
|
|
|
<ion-card
|
|
[routerLink]="['/recover']"
|
|
button="true"
|
|
color="light"
|
|
>
|
|
<ion-card-header>
|
|
<ion-card-title>Recover</ion-card-title>
|
|
<ion-card-subtitle>Recover the data from an old embassy</ion-card-subtitle>
|
|
</ion-card-header>
|
|
</ion-card>
|
|
</div>
|
|
</ion-content>
|