Allow other fire-dom-event users (e.g. browser_mod)

This commit is contained in:
Dermot Duffy
2022-07-23 21:53:07 -07:00
parent 6c2409194b
commit 2f0e99a94e
3 changed files with 11 additions and 13 deletions
+2 -1
View File
@@ -167,7 +167,7 @@ const customActionSchema = schemaForType<
>()(
actionBaseSchema.extend({
action: z.literal('fire-dom-event'),
}),
}).passthrough(),
);
const noActionSchema = schemaForType<
NoActionConfig & ExtendedConfirmationRestrictionConfig
@@ -236,6 +236,7 @@ const actionSchema = z.union([
urlActionSchema,
moreInfoActionSchema,
noActionSchema,
customActionSchema,
frigateCardCustomActionSchema,
]);
export type ActionType = z.infer<typeof actionSchema>;