mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-02-20 17:57:30 +01:00
fix automatic refresh in metric status tab
This commit is contained in:
@@ -50,6 +50,7 @@
|
|||||||
|
|
||||||
/* State Init */
|
/* State Init */
|
||||||
let pieWidth = $state(0);
|
let pieWidth = $state(0);
|
||||||
|
let querySorting = $state({ field: "startTime", type: "col", order: "DESC" })
|
||||||
let tableHostFilter = $state("");
|
let tableHostFilter = $state("");
|
||||||
let tableStateFilter = $state(stateOptions[0]);
|
let tableStateFilter = $state(stateOptions[0]);
|
||||||
let tableHealthFilter = $state(healthOptions[0]);
|
let tableHealthFilter = $state(healthOptions[0]);
|
||||||
@@ -93,7 +94,7 @@
|
|||||||
`,
|
`,
|
||||||
variables: {
|
variables: {
|
||||||
nodeFilter: { cluster: { eq: cluster }},
|
nodeFilter: { cluster: { eq: cluster }},
|
||||||
sorting: { field: "startTime", type: "col", order: "DESC" },
|
sorting: querySorting,
|
||||||
},
|
},
|
||||||
requestPolicy: "network-only"
|
requestPolicy: "network-only"
|
||||||
}));
|
}));
|
||||||
@@ -163,7 +164,7 @@
|
|||||||
<Refresher
|
<Refresher
|
||||||
initially={120}
|
initially={120}
|
||||||
onRefresh={(interval) => {
|
onRefresh={(interval) => {
|
||||||
sorting = { field: "startTime", type: "col", order: "DESC" }
|
querySorting = { field: "startTime", type: "col", order: "DESC" };
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
|||||||
Reference in New Issue
Block a user