Replace button to manually add a Thread border router with more info button (#19903)

Replace button to manually add a border router with more info button
This commit is contained in:
Marcel van der Veldt 2024-02-28 12:33:21 +01:00 committed by GitHub
parent 3b89b72568
commit 5b3074d939
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 4 deletions

View File

@ -54,6 +54,7 @@ import { haStyle } from "../../../../../resources/styles";
import { HomeAssistant } from "../../../../../types"; import { HomeAssistant } from "../../../../../types";
import { brandsUrl } from "../../../../../util/brands-url"; import { brandsUrl } from "../../../../../util/brands-url";
import { fileDownload } from "../../../../../util/file_download"; import { fileDownload } from "../../../../../util/file_download";
import { documentationUrl } from "../../../../../util/documentation-url";
interface ThreadNetwork { interface ThreadNetwork {
name: string; name: string;
@ -123,11 +124,16 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
)} )}
</h3> </h3>
<ha-svg-icon .path=${mdiDevices}></ha-svg-icon> <ha-svg-icon .path=${mdiDevices}></ha-svg-icon>
<mwc-button @click=${this._addOTBR} <a
href=${documentationUrl(this.hass, `/integrations/thread`)}
target="_blank"
>
<mwc-button
>${this.hass.localize( >${this.hass.localize(
"ui.panel.config.thread.add_open_thread_border_router" "ui.panel.config.thread.more_info"
)}</mwc-button )}</mwc-button
> >
</a>
</div> </div>
</ha-card>`} </ha-card>`}
${networks.networks.length ${networks.networks.length

View File

@ -4127,6 +4127,7 @@
"other_networks": "Other networks", "other_networks": "Other networks",
"my_network": "Preferred network", "my_network": "Preferred network",
"no_preferred_network": "You don't have a preferred network yet.", "no_preferred_network": "You don't have a preferred network yet.",
"more_info": "More Info",
"add_open_thread_border_router": "Add an OpenThread border router", "add_open_thread_border_router": "Add an OpenThread border router",
"reset_border_router": "Reset border router", "reset_border_router": "Reset border router",
"add_to_my_network": "Add to preferred network", "add_to_my_network": "Add to preferred network",