mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Link to beta release notes for beta release in hassio (#3243)
This commit is contained in:
parent
2d056bad81
commit
21ed717287
@ -41,10 +41,11 @@ class HassioHassUpdate extends PolymerElement {
|
|||||||
>Update</ha-call-api-button
|
>Update</ha-call-api-button
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="https://www.home-assistant.io/latest-release-notes/"
|
href="[[computeReleaseNotesUrl(hassInfo.version)]]"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
><mwc-button>Release notes</mwc-button></a
|
|
||||||
>
|
>
|
||||||
|
<mwc-button>Release notes</mwc-button>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</paper-card>
|
</paper-card>
|
||||||
</div>
|
</div>
|
||||||
@ -84,6 +85,12 @@ class HassioHassUpdate extends PolymerElement {
|
|||||||
computeUpdateAvailable(hassInfo) {
|
computeUpdateAvailable(hassInfo) {
|
||||||
return hassInfo.version !== hassInfo.last_version;
|
return hassInfo.version !== hassInfo.last_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
computeReleaseNotesUrl(version) {
|
||||||
|
return `https://${
|
||||||
|
version.includes("b") ? "rc" : "www"
|
||||||
|
}.home-assistant.io/latest-release-notes/`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
customElements.define("hassio-hass-update", HassioHassUpdate);
|
customElements.define("hassio-hass-update", HassioHassUpdate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user