mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Show alternative names in certificate dialog (#17839)
This commit is contained in:
parent
eae4ca1271
commit
19c4ed4690
@ -11,6 +11,7 @@ export interface CertificateInformation {
|
|||||||
common_name: string;
|
common_name: string;
|
||||||
expire_date: string;
|
expire_date: string;
|
||||||
fingerprint: string;
|
fingerprint: string;
|
||||||
|
alternative_names: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CloudPreferences {
|
export interface CloudPreferences {
|
||||||
|
@ -62,6 +62,16 @@ class DialogCloudCertificate extends LitElement {
|
|||||||
)}
|
)}
|
||||||
${certificateInfo.fingerprint}
|
${certificateInfo.fingerprint}
|
||||||
</p>
|
</p>
|
||||||
|
<p class="break-word">
|
||||||
|
${this.hass!.localize(
|
||||||
|
"ui.panel.config.cloud.dialog_certificate.alternative_names"
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
${certificateInfo.alternative_names.map(
|
||||||
|
(name) => html`<li><code>${name}</code></li>`
|
||||||
|
)}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mwc-button @click=${this.closeDialog} slot="primaryAction">
|
<mwc-button @click=${this.closeDialog} slot="primaryAction">
|
||||||
|
@ -3183,6 +3183,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialog_certificate": {
|
"dialog_certificate": {
|
||||||
|
"alternative_names": "Alternative names:",
|
||||||
"certificate_information": "Certificate information",
|
"certificate_information": "Certificate information",
|
||||||
"certificate_expiration_date": "Certificate expiration date:",
|
"certificate_expiration_date": "Certificate expiration date:",
|
||||||
"will_be_auto_renewed": "will be automatically renewed",
|
"will_be_auto_renewed": "will be automatically renewed",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user