remove restore warning and better messaging for backup/restore (#1881)

This commit is contained in:
Matt Hill
2022-10-21 11:48:06 -06:00
committed by Aiden McClelland
parent 6ad9a5952e
commit 207020b7a0
3 changed files with 48 additions and 33 deletions

View File

@@ -21,18 +21,26 @@
<ng-template #noError> <ng-template #noError>
<ion-item-group> <ion-item-group>
<!-- ** cifs ** --> <!-- ** cifs ** -->
<ion-item-divider>LAN Shared Folders</ion-item-divider> <ion-item-divider>Network Folders</ion-item-divider>
<ion-item> <ion-item>
<ion-label> <ion-label>
<h2> <h2>
LAN Shared Folders are the recommended way to create Embassy {{
backups. View the type === 'create'
? 'Backup your Embassy to'
: 'Restore your services from'
}}
a folder on another computer that is connected to the same network
as your Embassy. View the
<a <a
href="https://start9.com/latest/user-manual/backups/cifs-setup" href="https://start9.com/latest/user-manual/backups/cifs-setup"
target="_blank" target="_blank"
noreferrer noreferrer
>Instructions</a style="text-decoration: none"
> >
Instructions
<ion-icon name="open-outline" size="small"></ion-icon>
</a>
</h2> </h2>
</ion-label> </ion-label>
</ion-item> </ion-item>
@@ -40,7 +48,7 @@
<ion-item button detail="false" (click)="presentModalAddCifs()"> <ion-item button detail="false" (click)="presentModalAddCifs()">
<ion-icon <ion-icon
slot="start" slot="start"
name="folder-open-outline" name="add"
size="large" size="large"
color="dark" color="dark"
></ion-icon> ></ion-icon>
@@ -89,32 +97,50 @@
<!-- ** drives ** --> <!-- ** drives ** -->
<ion-item-divider>Physical Drives</ion-item-divider> <ion-item-divider>Physical Drives</ion-item-divider>
<!-- no drives --> <!-- always -->
<ion-item <ion-item>
*ngIf="!drives.length; else hasDrives"
class="ion-padding-bottom"
>
<ion-label> <ion-label>
<h2> <h2>
<ion-text color="warning"> {{
Warning! Plugging a 2nd physical drive directly into your type === 'create'
Embassy can lead to data corruption. ? 'Backup your Embassy to'
</ion-text> : 'Restore your services from'
To safely create a backup to a physical drive, view the }}
a physcial drive that is plugged directly into your Embassy. View
the
<a <a
href="https://start9.com/latest/user-manual/backups/backups-create/#backup-using-a-physical-drive" href="https://start9.com/latest/user-manual/backups/backups-create/#backup-using-a-physical-drive"
target="_blank" target="_blank"
noreferrer noreferrer
>instructions</a style="text-decoration: none"
>. >
</h2> Instructions
<br /> <ion-icon name="open-outline" size="small"></ion-icon>
<h2> </a>
If your drive is plugged in and does not appear, try .
<a (click)="refresh()" style="cursor: pointer">refreshing</a>. <ion-text color="warning"
>Warning. Do not use this option if you are using a Raspberry Pi
with an external SSD. The Raspberry Pi does not support more
than one external drive without additional power and can cause
data corruption.</ion-text
>
</h2> </h2>
</ion-label> </ion-label>
</ion-item> </ion-item>
<!-- no drives -->
<div
*ngIf="!drives.length; else hasDrives"
class="ion-padding-bottom ion-text-center"
>
<br />
<p>
No drives detected.
<a style="cursor: pointer" (click)="refresh()"
>Refresh<ion-icon name="refresh"></ion-icon
></a>
</p>
</div>
<!-- drives detected --> <!-- drives detected -->
<ng-template #hasDrives> <ng-template #hasDrives>
<ion-item <ion-item

View File

@@ -13,10 +13,6 @@
</ion-header> </ion-header>
<ion-content> <ion-content>
<h3 class="padding warning">
Warning! Restoring a service will <i>permanently overwrite</i> its current
data with data from its backup. Please make selections carefully.
</h3>
<ion-item-group> <ion-item-group>
<ion-item *ngFor="let option of options"> <ion-item *ngFor="let option of options">
<ion-label> <ion-label>

View File

@@ -1,7 +0,0 @@
.padding {
padding: 10px;
}
.warning {
color: var(--ion-color-warning)
}