mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 22:36:35 +00:00
Change unsupported reason container to software (#10325)
This commit is contained in:
parent
21e1fef0fb
commit
62d3f74513
@ -31,29 +31,9 @@ import { documentationUrl } from "../../../src/util/documentation-url";
|
|||||||
import "../components/supervisor-metric";
|
import "../components/supervisor-metric";
|
||||||
import { hassioStyle } from "../resources/hassio-style";
|
import { hassioStyle } from "../resources/hassio-style";
|
||||||
|
|
||||||
const UNSUPPORTED_REASON_URL = {
|
const UNSUPPORTED_REASON_URL = {};
|
||||||
apparmor: "/more-info/unsupported/apparmor",
|
|
||||||
container: "/more-info/unsupported/container",
|
|
||||||
content_trust: "/more-info/unsupported/content_trust",
|
|
||||||
dbus: "/more-info/unsupported/dbus",
|
|
||||||
docker_configuration: "/more-info/unsupported/docker_configuration",
|
|
||||||
docker_version: "/more-info/unsupported/docker_version",
|
|
||||||
job_conditions: "/more-info/unsupported/job_conditions",
|
|
||||||
lxc: "/more-info/unsupported/lxc",
|
|
||||||
network_manager: "/more-info/unsupported/network_manager",
|
|
||||||
os_agent: "/more-info/unsupported/os_agent",
|
|
||||||
os: "/more-info/unsupported/os",
|
|
||||||
privileged: "/more-info/unsupported/privileged",
|
|
||||||
source_mods: "/more-info/unsupported/source_mods",
|
|
||||||
systemd: "/more-info/unsupported/systemd",
|
|
||||||
};
|
|
||||||
|
|
||||||
const UNHEALTHY_REASON_URL = {
|
const UNHEALTHY_REASON_URL = {
|
||||||
privileged: "/more-info/unsupported/privileged",
|
privileged: "/more-info/unsupported/privileged",
|
||||||
supervisor: "/more-info/unhealthy/supervisor",
|
|
||||||
setup: "/more-info/unhealthy/setup",
|
|
||||||
docker: "/more-info/unhealthy/docker",
|
|
||||||
untrusted: "/more-info/unhealthy/untrusted",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@customElement("hassio-supervisor-info")
|
@customElement("hassio-supervisor-info")
|
||||||
@ -425,20 +405,19 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
${this.supervisor.resolution.unsupported.map(
|
${this.supervisor.resolution.unsupported.map(
|
||||||
(reason) => html`
|
(reason) => html`
|
||||||
<li>
|
<li>
|
||||||
${UNSUPPORTED_REASON_URL[reason]
|
<a
|
||||||
? html`<a
|
href=${documentationUrl(
|
||||||
href=${documentationUrl(
|
this.hass,
|
||||||
this.hass,
|
UNSUPPORTED_REASON_URL[reason] ||
|
||||||
UNSUPPORTED_REASON_URL[reason]
|
`/more-info/unsupported/${reason}`
|
||||||
)}
|
)}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>
|
>
|
||||||
${this.supervisor.localize(
|
${this.supervisor.localize(
|
||||||
`system.supervisor.unsupported_reason.${reason}`
|
`system.supervisor.unsupported_reason.${reason}`
|
||||||
) || reason}
|
) || reason}
|
||||||
</a>`
|
</a>
|
||||||
: reason}
|
|
||||||
</li>
|
</li>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
@ -456,20 +435,19 @@ class HassioSupervisorInfo extends LitElement {
|
|||||||
${this.supervisor.resolution.unhealthy.map(
|
${this.supervisor.resolution.unhealthy.map(
|
||||||
(reason) => html`
|
(reason) => html`
|
||||||
<li>
|
<li>
|
||||||
${UNHEALTHY_REASON_URL[reason]
|
<a
|
||||||
? html`<a
|
href=${documentationUrl(
|
||||||
href=${documentationUrl(
|
this.hass,
|
||||||
this.hass,
|
UNHEALTHY_REASON_URL[reason] ||
|
||||||
UNHEALTHY_REASON_URL[reason]
|
`/more-info/unhealthy/${reason}`
|
||||||
)}
|
)}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
>
|
>
|
||||||
${this.supervisor.localize(
|
${this.supervisor.localize(
|
||||||
`system.supervisor.unhealthy_reason.${reason}`
|
`system.supervisor.unhealthy_reason.${reason}`
|
||||||
) || reason}
|
) || reason}
|
||||||
</a>`
|
</a>
|
||||||
: reason}
|
|
||||||
</li>
|
</li>
|
||||||
`
|
`
|
||||||
)}
|
)}
|
||||||
|
@ -4244,7 +4244,6 @@
|
|||||||
"share_diagonstics_description": "Would you want to automatically share crash reports and diagnostic information when the Supervisor encounters unexpected errors? {line_break} This will allow us to fix the problems, the information is only accessible to the Home Assistant Core team and will not be shared with others.{line_break} The data does not include any private/sensitive information and you can disable this in settings at any time you want.",
|
"share_diagonstics_description": "Would you want to automatically share crash reports and diagnostic information when the Supervisor encounters unexpected errors? {line_break} This will allow us to fix the problems, the information is only accessible to the Home Assistant Core team and will not be shared with others.{line_break} The data does not include any private/sensitive information and you can disable this in settings at any time you want.",
|
||||||
"unsupported_reason": {
|
"unsupported_reason": {
|
||||||
"apparmor": "AppArmor is not enabled on the host",
|
"apparmor": "AppArmor is not enabled on the host",
|
||||||
"container": "Containers known to cause issues",
|
|
||||||
"content_trust": "Content-trust validation is disabled",
|
"content_trust": "Content-trust validation is disabled",
|
||||||
"dbus": "DBUS",
|
"dbus": "DBUS",
|
||||||
"docker_configuration": "Docker Configuration",
|
"docker_configuration": "Docker Configuration",
|
||||||
@ -4255,6 +4254,7 @@
|
|||||||
"os": "Operating System",
|
"os": "Operating System",
|
||||||
"os_agent": "OS Agent",
|
"os_agent": "OS Agent",
|
||||||
"privileged": "Supervisor is not privileged",
|
"privileged": "Supervisor is not privileged",
|
||||||
|
"software": "Unsupported software detected",
|
||||||
"source_mods": "Source modifications",
|
"source_mods": "Source modifications",
|
||||||
"systemd": "Systemd"
|
"systemd": "Systemd"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user