-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DateTimeTrigger in rules configuration #1357
Conversation
Job #384: Bundle Size — 10.7MB (~-0.01%). |
@@ -153,6 +153,7 @@ | |||
<f7-list> | |||
<f7-list-item radio :checked="timeEventType === 'cron'" name="timeEventType" title="on a schedule (cron)" @click="updateTimeEventType('cron')" /> | |||
<f7-list-item radio :checked="timeEventType === 'timeOfDay'" name="timeEventType" title="at a fixed time of the day" @click="updateTimeEventType('timeOfDay')" /> | |||
<f7-list-item radio :checked="thingEventType === 'dateTime'" name="timeEventType" title="at the time specified in an item's state" @click="updateTimeEventType('dateTime')" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<f7-list-item radio :checked="thingEventType === 'dateTime'" name="timeEventType" title="at the time specified in an item's state" @click="updateTimeEventType('dateTime')" /> | |
<f7-list-item radio :checked="timeEventType === 'dateTime'" name="timeEventType" title="at the time specified in an item's state" @click="updateTimeEventType('dateTime')" /> |
@@ -282,6 +283,10 @@ export default { | |||
case 'timeOfDay': | |||
this.$emit('typeSelect', 'timer.TimeOfDayTrigger', true) | |||
break | |||
case 'dateTime': | |||
this.$emit('typeSelect', 'timer.DateTimeTrigger', true) | |||
if (this.currentItem) this.$set(this.currentModule, 'configuration', Object.assign({}, { itemName: this.currentItem.name })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.currentItem
isn't relevant when you choose a "Time event" trigger, only when you choose "Item event" (then the UI lets you pick an item (put into this.currentItem
and only then you may choose the trigger type and configuration).
Since the generic config sheet is already displayed for these "Time event" triggers (so you'll be able to choose the item) I suppose there's nothing more to do than remove this line.
Signed-off-by: Jan N. Klug <github@klug.nrw>
Signed-off-by: Jan N. Klug <github@klug.nrw>
63cdbaa
to
794938b
Compare
The core PR has been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, good to have the UI catching up swiftly to core changes!
Depends on openhab/openhab-core#2923
Signed-off-by: Jan N. Klug github@klug.nrw