new widget types 3

This commit is contained in:
davmar
2026-09-10 17:37:10 +02:00
parent 68a2a484c6
commit ecc5185d3b
2 changed files with 43 additions and 42 deletions
@@ -6,7 +6,9 @@ migrate((app) => {
const col = app.findCollectionByNameOrId("home_filter_widgets");
if (col.fields.getByName("half_width")) return;
col.fields.add(new BoolField({
// Automigrate-style constructor (plain objects are rejected by fields.add).
col.fields.add(new Field({
type: "bool",
name: "half_width",
required: false,
}));