Skip to content

Commit

Permalink
Merge pull request #95 from seki-seki/fix/dynamic-param
Browse files Browse the repository at this point in the history
Enable to send params
  • Loading branch information
kawasima authored Jan 20, 2017
2 parents 99f98db + f9d94fc commit 008dfe2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cljs/job_streamer/console/components/jobs.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
(defcomponent job-execution-dialog [[type {:keys [job backto]}] owner opts]
(init-state [_]
{:params {}})
(render-state [_ {:keys [jobs-view-channel params message-channel] :as owner}]
(render-state [_ {:keys [jobs-view-channel params message-channel]}]
(html
[:div.ui.dimmer.modals.page.transition.visible.active
[:div.ui.modal.scrolling.transition.visible.active
Expand All @@ -96,7 +96,8 @@
[:input {:type "text"
:name param-name
:value (get params (keyword param-name))
:on-change (fn [e] (om/update-state! owner :params
:on-change (fn [e]
(om/update-state! owner :params
#(assoc % (keyword param-name) (.. e -target -value))))}]])]]
[:div (case type
:execute "Execute now?"
Expand Down

0 comments on commit 008dfe2

Please sign in to comment.