Skip to content

Commit

Permalink
fix: listen for change events instead of @click
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtr126 committed Nov 23, 2023
1 parent 1e0e019 commit 9458770
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/installer_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,17 +187,17 @@ export class InstallerApp extends LitElement {
<div>
<label style="margin-right: 40px;">${msg('Create /data directory')}</label>
<md-switch selected @click="${this.dataDirSwitchClicked}" id="data-dir-switch"></md-switch>
<md-switch selected @change="${this.dataDirSwitchClicked}" id="data-dir-switch"></md-switch>
</div>
<div style="margin-top: -10px;">
<label style="margin-right: 80px;">${msg('Create data.img')}</label>
<md-switch @click="${this.dataImgSwitchClicked}" id="data-img-switch"></md-switch>
<md-switch @change="${this.dataImgSwitchClicked}" id="data-img-switch"></md-switch>
</div>
<div style="margin-top: -10px;">
<label style="margin-right: 80px;">${msg('Install for QEMU')} </label>
<md-switch @click="${this.qemuInstallSwitchClicked}" id="qemu-install-switch"></md-switch>
<md-switch @change="${this.qemuInstallSwitchClicked}" id="qemu-install-switch"></md-switch>
</div>
<div style="margin-top: -20px; display: none;" id="c-data-img">
Expand Down Expand Up @@ -371,6 +371,7 @@ export class InstallerApp extends LitElement {
this.dataImgSize = event.target.value;
}

/** @override */
firstUpdated() {
this.dialog = this.renderRoot.querySelector('#dialog');
this.circularProgress = this.renderRoot.querySelector('#circular-progress');
Expand Down

0 comments on commit 9458770

Please sign in to comment.