Closed romanblanco closed 5 years ago
I've been using this Automate method (for a dialog with one checkbox and a date-time field) to verify the value get updated correctly for automate requests:
trigger = $evm.root['dialog_trigger']
$evm.log('info', "======= trigger value #{trigger}")
if trigger == "t"
new_date = Time.utc(2019, 12, 24)
#new_date = '2019-12-24'
$evm.object['value'] = new_date
$evm.log('info', "======== new date #{$evm.object['value']}")
else # "f"
$evm.object['value'] = Time.utc(2021, 12, 24)
$evm.log('info', "======== clearing up date #{$evm.object['value']}")
end
@eclarizio please review
Added the change (and spec fix) as part of https://github.com/ManageIQ/ui-components/pull/399
result of discussion in #392:
https://github.com/ManageIQ/ui-components/pull/392#discussion_r296871830 https://github.com/ManageIQ/ui-components/pull/392#discussion_r298549039