diff --git a/internal/api/rest.go b/internal/api/rest.go index 4e52701..2921ba5 100644 --- a/internal/api/rest.go +++ b/internal/api/rest.go @@ -1419,7 +1419,7 @@ func (api *RestApi) updateConfiguration(rw http.ResponseWriter, r *http.Request) rw.Header().Set("Content-Type", "text/plain") key, value := r.FormValue("key"), r.FormValue("value") - fmt.Printf("REST > KEY: %#v\nVALUE: %#v\n", key, value) + // fmt.Printf("REST > KEY: %#v\nVALUE: %#v\n", key, value) if err := repository.GetUserCfgRepo().UpdateConfig(key, value, repository.GetUserFromContext(r.Context())); err != nil { http.Error(rw, err.Error(), http.StatusUnprocessableEntity) diff --git a/web/frontend/src/config/AdminSettings.svelte b/web/frontend/src/config/AdminSettings.svelte index f512d40..dd53df4 100644 --- a/web/frontend/src/config/AdminSettings.svelte +++ b/web/frontend/src/config/AdminSettings.svelte @@ -4,7 +4,7 @@ @@ -41,11 +73,58 @@ + + +
+ handleSettingSubmit("#node-paging-form", "npag")} + > + + +
Node List Paging Type
+ {#if displayMessage && message.target == "npag"}
+ Update: {message.msg} +
{/if} +
+ +
+
+ {#if config?.node_list_usePaging} + + {:else} + + {/if} + +
+
+ {#if config?.node_list_usePaging} + + {:else} + + {/if} + +
+
+ +
+
+ + {#if resampleConfig} - Metric Plot Resampling + Metric Plot Resampling Info

Triggered at {resampleConfig.trigger} datapoints.

Configured resolutions: {resampleConfig.resolutions}

diff --git a/web/frontend/src/config/user/UserOptions.svelte b/web/frontend/src/config/user/UserOptions.svelte index f8c1f00..be7f368 100644 --- a/web/frontend/src/config/user/UserOptions.svelte +++ b/web/frontend/src/config/user/UserOptions.svelte @@ -74,7 +74,7 @@ -
Paging Type
+
Job List Paging Type
{#if displayMessage && message.target == "pag"}
diff --git a/web/frontend/src/systems/NodeList.svelte b/web/frontend/src/systems/NodeList.svelte index 38a8068..6cd261d 100644 --- a/web/frontend/src/systems/NodeList.svelte +++ b/web/frontend/src/systems/NodeList.svelte @@ -28,8 +28,8 @@ export let to = null; // Decouple from Job List Paging Params? - let usePaging = ccconfig.job_list_usePaging - let itemsPerPage = usePaging ? ccconfig.plot_list_jobsPerPage : 10; + let usePaging = ccconfig?.node_list_usePaging || false + let itemsPerPage = usePaging ? (ccconfig?.plot_list_nodesPerPage || 10) : 10; let page = 1; let paging = { itemsPerPage, page }; @@ -106,7 +106,7 @@ // Decouple from Job List Paging Params? function updateConfiguration(value, page) { updateConfigurationMutation({ - name: "plot_list_jobsPerPage", + name: "plot_list_nodesPerPage", value: value, }).subscribe((res) => { if (res.fetching === false && !res.error) {