Switch update and openChangelog button (#9174)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Julien Roy 2021-05-14 16:55:38 +02:00 committed by GitHub
parent fe2fe7468f
commit cc0a120bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,16 +171,16 @@ class HassioAddonInfo extends LitElement {
: ""} : ""}
</div> </div>
<div class="card-actions"> <div class="card-actions">
<mwc-button @click=${this._updateClicked}>
${this.supervisor.localize("common.update")}
</mwc-button>
${this.addon.changelog ${this.addon.changelog
? html` ? html`
<mwc-button @click=${this._openChangelog}> <mwc-button @click=${this._openChangelog}>
${this.supervisor.localize("addon.dashboard.changelog")} ${this.supervisor.localize("addon.dashboard.changelog")}
</mwc-button> </mwc-button>
` `
: ""} : html`<span></span>`}
<mwc-button @click=${this._updateClicked}>
${this.supervisor.localize("common.update")}
</mwc-button>
</div> </div>
</ha-card> </ha-card>
` `