mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Add known issues link to integrations card (#10994)
Co-authored-by: Zack Barett <arnett.zackary@gmail.com>
This commit is contained in:
parent
78d06426cf
commit
25d60e11da
@ -33,6 +33,7 @@ import {
|
||||
import type { DeviceRegistryEntry } from "../../../data/device_registry";
|
||||
import type { EntityRegistryEntry } from "../../../data/entity_registry";
|
||||
import type { IntegrationManifest } from "../../../data/integration";
|
||||
import { integrationIssuesUrl } from "../../../data/integration";
|
||||
import { showConfigEntrySystemOptionsDialog } from "../../../dialogs/config-entry-system-options/show-dialog-config-entry-system-options";
|
||||
import { showOptionsFlowDialog } from "../../../dialogs/config-flow/show-dialog-options-flow";
|
||||
import {
|
||||
@ -329,6 +330,23 @@ export class HaIntegrationCard extends LitElement {
|
||||
</mwc-list-item>
|
||||
</a>`
|
||||
: ""}
|
||||
${this.manifest &&
|
||||
(this.manifest.is_built_in || this.manifest.issue_tracker)
|
||||
? html`<a
|
||||
href=${integrationIssuesUrl(item.domain, this.manifest)}
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
<mwc-list-item hasMeta>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.integrations.config_entry.known_issues"
|
||||
)}<ha-svg-icon
|
||||
slot="meta"
|
||||
.path=${mdiOpenInNew}
|
||||
></ha-svg-icon>
|
||||
</mwc-list-item>
|
||||
</a>`
|
||||
: ""}
|
||||
${!item.disabled_by &&
|
||||
item.state === "loaded" &&
|
||||
item.supports_unload &&
|
||||
|
@ -2436,6 +2436,7 @@
|
||||
"configure": "Configure",
|
||||
"system_options": "System options",
|
||||
"documentation": "Documentation",
|
||||
"known_issues": "Known issues",
|
||||
"delete": "Delete",
|
||||
"delete_confirm": "Are you sure you want to delete the {title} integration?",
|
||||
"reload": "Reload",
|
||||
|
Loading…
x
Reference in New Issue
Block a user