/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { MozLitElement } from "chrome://global/content/lit-utils.mjs"; import { html } from "chrome://global/content/vendor/lit.all.mjs"; class UpdateInformation extends MozLitElement { static properties = { version: { type: String }, distribution: { type: String }, distributionId: { type: String }, releaseNotesURL: { type: String }, }; constructor() { super(); /** @type {string} */ this.version = ""; /** @type {string} */ this.distribution = ""; /** @type {string} */ this.distributionId = ""; /** @type {string} */ this.releaseNotesURL = ""; } labelTemplate() { if (!this.version) { return ""; } return html`
`; } descriptionTemplate() { if (!this.distribution && !this.distributionId) { return ""; } return html`
${this.distribution} ${this.distributionId}
`; } render() { return html`
${this.labelTemplate()} ${this.descriptionTemplate()}
`; } } customElements.define("update-information", UpdateInformation);