Skip to content

Commit

Permalink
Merge pull request #785 from CSCfi/fixes
Browse files Browse the repository at this point in the history
Fixes to application page
  • Loading branch information
luontola authored Dec 12, 2018
2 parents 355d1ea + 384a4c0 commit 2045114
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cljs/rems/application.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
::application application
::edit-application {:items (into {} (for [item (:items application)]
[(:id item) {:value (:value item)}]))
:licenses (into {} (map (juxt :id :approver) (:licenses application)))})))
:licenses (into {} (map (juxt :id :approved) (:licenses application)))})))

(rf/reg-event-fx
::enter-new-application-page
Expand Down Expand Up @@ -571,7 +571,7 @@
:name (str "license" id)
:disabled readonly
:class (when validation "is-invalid")
:checked approved
:checked (boolean approved)
:on-change (set-license-approval id)}]
[:span.form-check-label content]]
[field-validation-message validation title]])
Expand Down Expand Up @@ -980,7 +980,9 @@
[collapsible/component
{:id "actions"
:title (text :t.form/actions)
:always (into [:div [:div.commands actions]] forms)}])))
:always (into [:div (into [:div.commands]
actions)]
forms)}])))

(defn- disabled-items-warning [catalogue-items]
(let [language @(rf/subscribe [:language])]
Expand Down

0 comments on commit 2045114

Please sign in to comment.