chore: Add in the properties to somewhere useful.

This commit is contained in:
J H
2024-03-11 17:06:00 -06:00
parent 4d402b2600
commit c99d9d95c5
4 changed files with 19 additions and 8 deletions

View File

@@ -457,9 +457,12 @@ export class SystemForEmbassy implements System {
path: "/properties",
value: exposeUis.map((x) => x.value),
})
await effects.exposeUi(
exposeUis.map((x, i) => ({ ...x, path: `/properties/${i}` }) as any),
)
await effects.exposeUi({
paths: exposeUis.map((x, i) => ({
...x,
path: `/properties/${i}`,
})) as any[],
})
} else if (setConfigValue.type === "script") {
const moduleCode = this.moduleCode
const method = moduleCode.properties
@@ -478,9 +481,12 @@ export class SystemForEmbassy implements System {
path: "/properties",
value: exposeUis.map((x) => x.value),
})
await effects.exposeUi(
exposeUis.map((x, i) => ({ ...x, path: `/properties/${i}` }) as any),
)
await effects.exposeUi({
paths: exposeUis.map((x, i) => ({
...x,
path: `/properties/${i}`,
})) as any[],
})
}
}
private async health(