Skip to content

Commit

Permalink
Fix skip erase (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Nov 21, 2021
1 parent 25eb15e commit e0a8d75
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/install-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)}
></ewt-button>
</div>
`
Expand Down Expand Up @@ -280,7 +285,9 @@ class EwtInstallDialog extends LitElement {
<div>
<ewt-button
.label=${`Install ${this._manifest.name}`}
@click=${() => this._startInstall(true)}
@click=${() =>
// Erase if manifest doens't force skipping it
this._startInstall(!this._manifest.new_install_skip_erase)}
></ewt-button>
</div>
Expand Down

0 comments on commit e0a8d75

Please sign in to comment.