From e0a8d753d4d63141762765d58ae1a4ffec8ec65e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 21 Nov 2021 09:26:23 -0800 Subject: [PATCH] Fix skip erase (#127) --- src/install-dialog.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/install-dialog.ts b/src/install-dialog.ts index 8645444..490a2b9 100644 --- a/src/install-dialog.ts +++ b/src/install-dialog.ts @@ -191,7 +191,12 @@ class EwtInstallDialog extends LitElement { .label=${!this._isSameFirmware ? `Install ${this._manifest!.name}` : `Update ${this._manifest!.name}`} - @click=${() => this._startInstall(!this._isSameFirmware)} + @click=${() => + this._startInstall( + // Erase if manifest doens't force skipping it and it's not same firmware + !this._manifest.new_install_skip_erase && + !this._isSameFirmware + )} > ` @@ -280,7 +285,9 @@ class EwtInstallDialog extends LitElement {
this._startInstall(true)} + @click=${() => + // Erase if manifest doens't force skipping it + this._startInstall(!this._manifest.new_install_skip_erase)} >