no repeat alias editor
This commit is contained in:
1 parent
48decb2e16
commit
cbbc099384
8 files changed
+2
-37
No files matched your search
@@ -12,14 +12,8 @@ export const ActionChooseState: OptionManager<ChooseAction> = {
|
||||
isReady: ({ alias }) => {
|
||||
return alias !== ''
|
||||
},
|
||||
renderOptionList: (state, setState) => {
|
||||
const update = updateActionData(state, setState);
|
||||
renderOptionList: () => {
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={state.alias ?? ""}
|
||||
onChange={alias => update({ alias })}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
}
|
||||
@@ -27,11 +27,6 @@ export const ActionDeviceState: OptionManager<DeviceAction> = {
|
||||
renderOptionList: (state, setState) => {
|
||||
const update = updateActionData(state, setState);
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={state.alias ?? ""}
|
||||
onChange={alias => update({ alias })}
|
||||
/>
|
||||
<InputText
|
||||
textBoxFor="device_id"
|
||||
label="Device"
|
||||
|
||||
@@ -17,11 +17,6 @@ export const ActionEventState: OptionManager<FireEventAction> = {
|
||||
renderOptionList: (state, setState) => {
|
||||
const update = updateActionData(state, setState);
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={state.alias ?? ""}
|
||||
onChange={alias => update({ alias })}
|
||||
/>
|
||||
<InputText
|
||||
textBoxFor="event"
|
||||
label="Event"
|
||||
|
||||
@@ -23,11 +23,6 @@ export const ActionRepeatState: OptionManager<RepeatAction> = {
|
||||
renderOptionList: (state, setState) => {
|
||||
const update = updateActionData(state, setState);
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={state.alias ?? ""}
|
||||
onChange={alias => update({ alias })}
|
||||
/>
|
||||
<InputNumber
|
||||
label="How many times?"
|
||||
value={state.repeat.count}
|
||||
|
||||
@@ -21,11 +21,6 @@ export const ActionCallServiceState: OptionManager<ServiceAction> = {
|
||||
const { service, alias = "", target } = state;
|
||||
const update = updateActionData(state, setState);
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={alias}
|
||||
onChange={alias => update({ alias })}
|
||||
/>
|
||||
<InputText
|
||||
textBoxFor="service"
|
||||
label="Service"
|
||||
|
||||
@@ -20,11 +20,6 @@ export const ActionWaitState: OptionManager<WaitAction> = {
|
||||
renderOptionList: (state, setState) => {
|
||||
const update = updateActionData(state, setState);
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={state.alias ?? ""}
|
||||
onChange={alias => update({ alias })}
|
||||
/>
|
||||
<InputText
|
||||
textBoxFor="template"
|
||||
label="Template"
|
||||
|
||||
@@ -6,5 +6,6 @@ export const Generic: OptionManager<any> = {
|
||||
isReady: _ => true,
|
||||
renderOptionList: () => <>
|
||||
<b>THIS IS NOT SUPPORTED YET!</b>
|
||||
<span>But feel free to modify the yaml!</span>
|
||||
</>
|
||||
}
|
||||
@@ -17,11 +17,6 @@ export const TriggerEventState: OptionManager<AutomationTriggerEvent> = {
|
||||
},
|
||||
renderOptionList: (state, setState) => {
|
||||
return <>
|
||||
<InputText
|
||||
label="Description"
|
||||
value={state.alias ?? ""}
|
||||
onChange={alias => setState({ ...state, alias })}
|
||||
/>
|
||||
<InputText
|
||||
label="Event Type"
|
||||
value={String(state.event_type)}
|
||||
|
||||
Reference in new issue
Block a user