Feat/update progress (#1944)

* uodate FE to show progress once calculated

* update mocks

* only show progress when known

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Matt Hill
2022-11-15 20:57:03 -07:00
committed by Aiden McClelland
parent 5b91b5f436
commit 18ee1e2685
9 changed files with 59 additions and 32 deletions

View File

@@ -135,7 +135,7 @@ async fn maybe_do_update(
};
status.update_progress = Some(UpdateProgress {
size: Some(100),
size: None,
downloaded: 0,
});
status.save(&mut tx).await?;
@@ -301,7 +301,7 @@ async fn copy_ssh_host_keys() -> Result<(), Error> {
async fn sync_boot() -> Result<(), Error> {
Rsync::new(
"/media/embassy/next/boot/",
"/boot",
"/boot/",
RsyncOptions {
delete: false,
force: false,