From 207020b7a027cbee26e1203a20571aeee20d2b9e Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 21 Oct 2022 11:48:06 -0600 Subject: [PATCH] remove restore warning and better messaging for backup/restore (#1881) --- .../backup-drives.component.html | 70 +++++++++++++------ .../app-recover-select.page.html | 4 -- .../app-recover-select.page.scss | 7 -- 3 files changed, 48 insertions(+), 33 deletions(-) diff --git a/frontend/projects/ui/src/app/components/backup-drives/backup-drives.component.html b/frontend/projects/ui/src/app/components/backup-drives/backup-drives.component.html index 300563d23..c244c2760 100644 --- a/frontend/projects/ui/src/app/components/backup-drives/backup-drives.component.html +++ b/frontend/projects/ui/src/app/components/backup-drives/backup-drives.component.html @@ -21,18 +21,26 @@ - LAN Shared Folders + Network Folders

- 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 Instructions + Instructions + +

@@ -40,7 +48,7 @@ @@ -89,32 +97,50 @@ Physical Drives - - + +

- - Warning! Plugging a 2nd physical drive directly into your - Embassy can lead to data corruption. - - To safely create a backup to a physical drive, view the + {{ + type === 'create' + ? 'Backup your Embassy to' + : 'Restore your services from' + }} + a physcial drive that is plugged directly into your Embassy. View + the instructions. -

-
-

- If your drive is plugged in and does not appear, try - refreshing. + style="text-decoration: none" + > + Instructions + + + . + 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.

+ + +
+
+

+ No drives detected. + Refresh +

+
-

- Warning! Restoring a service will permanently overwrite its current - data with data from its backup. Please make selections carefully. -

diff --git a/frontend/projects/ui/src/app/modals/app-recover-select/app-recover-select.page.scss b/frontend/projects/ui/src/app/modals/app-recover-select/app-recover-select.page.scss index 03fc0ced1..e69de29bb 100644 --- a/frontend/projects/ui/src/app/modals/app-recover-select/app-recover-select.page.scss +++ b/frontend/projects/ui/src/app/modals/app-recover-select/app-recover-select.page.scss @@ -1,7 +0,0 @@ -.padding { - padding: 10px; -} - -.warning { - color: var(--ion-color-warning) -} \ No newline at end of file