Fix config warning and key name

This commit is contained in:
Christoph Kluge 2025-06-04 16:23:54 +02:00
parent 6e2703998d
commit d806cf76c4
2 changed files with 19 additions and 21 deletions

View File

@ -42,28 +42,26 @@
<Row cols={1} class="p-2 g-2"> <Row cols={1} class="p-2 g-2">
<Col> <Col>
<Card class="h-100"> <Card class="h-100">
<!-- Svelte 'class' directive only on DOMs directly, normal 'class="xxx"' does not work, so style-array it is. -->
<CardTitle
style="margin-bottom: 1em; display: flex; align-items: center;"
>
<div>Node List Paging Type</div>
{#if displayMessage && message.target == "npag"}<div
style="margin-left: auto; font-size: 0.9em;"
>
<code style="color: {message.color};" out:fade
>Update: {message.msg}</code
>
</div>{/if}
</CardTitle>
<form <form
id="node-paging-form" id="node-paging-form"
method="post" method="post"
action="/frontend/configuration/" action="/frontend/configuration/"
class="card-body" class="card-body"
on:submit|preventDefault={() => on:submit|preventDefault={() => handleSettingSubmit("#node-paging-form", "npag")}>
handleSettingSubmit("#node-paging-form", "npag")} <input type="hidden" name="key" value="node_list_usePaging" />
>
<!-- Svelte 'class' directive only on DOMs directly, normal 'class="xxx"' does not work, so style-array it is. -->
<CardTitle
style="margin-bottom: 1em; display: flex; align-items: center;"
>
<div>Node List Paging Type</div>
{#if displayMessage && message.target == "npag"}<div
style="margin-left: auto; font-size: 0.9em;"
>
<code style="color: {message.color};" out:fade
>Update: {message.msg}</code
>
</div>{/if}
</CardTitle>
<input type="hidden" name="nodes-key" value="node_list_usePaging" />
<div class="mb-3"> <div class="mb-3">
<div> <div>
{#if config?.node_list_usePaging} {#if config?.node_list_usePaging}

View File

@ -156,17 +156,17 @@
<div class="mb-3"> <div class="mb-3">
<div> <div>
{#if config.plot_general_colorBackground} {#if config.plot_general_colorBackground}
<input type="radio" id="true-checked" name="value" value="true" checked /> <input type="radio" id="colb-true-checked" name="value" value="true" checked />
{:else} {:else}
<input type="radio" id="true" name="value" value="true" /> <input type="radio" id="colb-true" name="value" value="true" />
{/if} {/if}
<label for="true">Yes</label> <label for="true">Yes</label>
</div> </div>
<div> <div>
{#if config.plot_general_colorBackground} {#if config.plot_general_colorBackground}
<input type="radio" id="false" name="value" value="false" /> <input type="radio" id="colb-false" name="value" value="false" />
{:else} {:else}
<input type="radio" id="false-checked" name="value" value="false" checked /> <input type="radio" id="colb-false-checked" name="value" value="false" checked />
{/if} {/if}
<label for="false">No</label> <label for="false">No</label>
</div> </div>