mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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
|
||||
>
|
||||
<a
|
||||
href="https://www.home-assistant.io/latest-release-notes/"
|
||||
href="[[computeReleaseNotesUrl(hassInfo.version)]]"
|
||||
target="_blank"
|
||||
><mwc-button>Release notes</mwc-button></a
|
||||
>
|
||||
<mwc-button>Release notes</mwc-button>
|
||||
</a>
|
||||
</div>
|
||||
</paper-card>
|
||||
</div>
|
||||
@ -84,6 +85,12 @@ class HassioHassUpdate extends PolymerElement {
|
||||
computeUpdateAvailable(hassInfo) {
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user