fix config form icon alts
This commit is contained in:
parent
5f409a5bbb
commit
440c40188b
@ -761,8 +761,8 @@ function addBootLine (container, data, before = null) {
|
|||||||
item.data = data;
|
item.data = data;
|
||||||
item.innerHTML = `
|
item.innerHTML = `
|
||||||
<div style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
<div style="display: grid; grid-template-columns: auto auto 8ch 1fr; column-gap: 10px; align-items: center;">
|
||||||
<img src="images/actions/drag.svg" id="drag">
|
<img src="images/actions/drag.svg" id="drag" alt="drag icon">
|
||||||
<img src="${bootMetaData[data.prefix].icon}">
|
<img src="${bootMetaData[data.prefix].icon}" alt="${bootMetaData[data.prefix].alt}">
|
||||||
<p style="margin: 0px;">${data.id}</p>
|
<p style="margin: 0px;">${data.id}</p>
|
||||||
<p style="margin: 0px; overflow-x: hidden; white-space: nowrap;">${data.detail}</p>
|
<p style="margin: 0px; overflow-x: hidden; white-space: nowrap;">${data.detail}</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -132,13 +132,16 @@ export const nodesConfig = {
|
|||||||
export const bootConfig = {
|
export const bootConfig = {
|
||||||
eligiblePrefixes: ["ide", "sata", "net"],
|
eligiblePrefixes: ["ide", "sata", "net"],
|
||||||
ide: {
|
ide: {
|
||||||
icon: "images/resources/disk.svg"
|
icon: "images/resources/disk.svg",
|
||||||
|
alt: "IDE Bootable Icon"
|
||||||
},
|
},
|
||||||
sata: {
|
sata: {
|
||||||
icon: "images/resources/drive.svg"
|
icon: "images/resources/drive.svg",
|
||||||
|
alt: "SATA Bootable Icon"
|
||||||
},
|
},
|
||||||
net: {
|
net: {
|
||||||
icon: "images/resources/network.svg"
|
icon: "images/resources/network.svg",
|
||||||
|
alt: "NET Bootable Icon"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user