vars: retrieve generators for multiple machines

This is necessary ground work for fixing regeneration behavior spanning over multiple machines
This commit is contained in:
DavHau
2025-08-26 17:13:01 +07:00
parent a9bafd71e1
commit 501d020562
11 changed files with 121 additions and 96 deletions

View File

@@ -433,12 +433,14 @@ export const useMachineGenerators = (
],
queryFn: async () => {
const call = client.fetch("get_generators", {
machine: {
name: machineName,
flake: {
identifier: clanUri,
machines: [
{
name: machineName,
flake: {
identifier: clanUri,
},
},
},
],
full_closure: true, // TODO: Make this configurable
// TODO: Make this configurable
include_previous_values: true,