svelete ip display fix

This commit is contained in:
saifullah-N
2022-12-24 13:09:26 +05:30
parent 9daae2923d
commit 17da631b0d
2 changed files with 4 additions and 7 deletions

View File

@@ -79,13 +79,13 @@
<div class="pure-control-group">
<label for="ip-addresses">IP Addresses</label>
<Card id="ip-addresses" variant="outlined">
{#each $networkInfo.ipAddresses as ipAddress}
<!-- {#each $networkInfo.ipAddresses as ipAddress} -->
<div>
<Text id="hostname">
{ipAddress}
{$networkInfo.ipAddresses}
</Text>
</div>
{/each}
<!-- {/each} -->
</Card>
</div>
</div>

View File

@@ -63,16 +63,13 @@
let template = configTemplate;
for (const part of keyParts) {
template = template[part];
if(!template.help)
template.help=""
console.log(template.help)
}
return template as Template;
}
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 || ""}`;
}