mirror of
https://github.com/esphome/esp-web-tools.git
synced 2025-07-28 22:26:37 +00:00
Fix skip erase (#127)
This commit is contained in:
parent
25eb15e1a2
commit
e0a8d753d4
@ -191,7 +191,12 @@ class EwtInstallDialog extends LitElement {
|
|||||||
.label=${!this._isSameFirmware
|
.label=${!this._isSameFirmware
|
||||||
? `Install ${this._manifest!.name}`
|
? `Install ${this._manifest!.name}`
|
||||||
: `Update ${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>
|
></ewt-button>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
@ -280,7 +285,9 @@ class EwtInstallDialog extends LitElement {
|
|||||||
<div>
|
<div>
|
||||||
<ewt-button
|
<ewt-button
|
||||||
.label=${`Install ${this._manifest.name}`}
|
.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>
|
></ewt-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user