svelete ip display fix
This commit is contained in:
@@ -79,13 +79,13 @@
|
|||||||
<div class="pure-control-group">
|
<div class="pure-control-group">
|
||||||
<label for="ip-addresses">IP Addresses</label>
|
<label for="ip-addresses">IP Addresses</label>
|
||||||
<Card id="ip-addresses" variant="outlined">
|
<Card id="ip-addresses" variant="outlined">
|
||||||
{#each $networkInfo.ipAddresses as ipAddress}
|
<!-- {#each $networkInfo.ipAddresses as ipAddress} -->
|
||||||
<div>
|
<div>
|
||||||
<Text id="hostname">
|
<Text id="hostname">
|
||||||
{ipAddress}
|
{$networkInfo.ipAddresses}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
<!-- {/each} -->
|
||||||
</Card>
|
</Card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -63,16 +63,13 @@
|
|||||||
let template = configTemplate;
|
let template = configTemplate;
|
||||||
for (const part of keyParts) {
|
for (const part of keyParts) {
|
||||||
template = template[part];
|
template = template[part];
|
||||||
if(!template.help)
|
|
||||||
template.help=""
|
|
||||||
console.log(template.help)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return template as Template;
|
return template as Template;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTitle(): string {
|
function getTitle(): string {
|
||||||
// const help = (!!template.help) ? `${template.help}\n` : "";
|
const help = (!!template.help) ? `${template.help}\n` : "";
|
||||||
return `${template.help}\n Default: ${template.default} ${template.unit || ""}`;
|
return `${template.help}\n Default: ${template.default} ${template.unit || ""}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user