new widget types 3
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user