fixed up calednar
This commit is contained in:
1 parent
6b21734041
commit
107def4fac
4 files changed
+17
-3
No files matched your search
@@ -2,6 +2,7 @@ import { OptionManager } from "./OptionManager";
|
||||
import { AutomationTriggerCalendar } from "types/automations/triggers";
|
||||
import { InputList } from "components/Inputs/InputList";
|
||||
import InputText from "components/Inputs/Base/InputText";
|
||||
import { InputEntity } from "components/Inputs/AutoComplete/InputEntities";
|
||||
|
||||
export const TriggerCalendarState: OptionManager<AutomationTriggerCalendar> = {
|
||||
defaultState: (): AutomationTriggerCalendar => ({
|
||||
@@ -12,6 +13,12 @@ export const TriggerCalendarState: OptionManager<AutomationTriggerCalendar> = {
|
||||
Component: ({ state, setState }) => {
|
||||
return (
|
||||
<>
|
||||
<InputEntity
|
||||
label="Calendar"
|
||||
restrictToDomain={["calendar"]}
|
||||
value={state.entity_id ?? ""}
|
||||
onChange={(v) => setState({ ...state, entity_id: v ?? "" })}
|
||||
/>
|
||||
<InputList
|
||||
label="Event Type"
|
||||
current={state.event}
|
||||
|
||||
Reference in new issue
Block a user