svelete ip display fix
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 || ""}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user