New import approach to capture the batch.
This commit is contained in:
@@ -111,13 +111,20 @@
|
||||
:on-change (dispatch-value-change [::data-page/filter-changed data-page :description])} ]]]]
|
||||
(when-let [exact-match-id @(re-frame/subscribe [::data-page/filter data-page :exact-match-id])]
|
||||
[:div
|
||||
[:p.menu-label "Specific Payment"]
|
||||
[:p.menu-label "Specific Transaction"]
|
||||
[:span.tag.is-medium exact-match-id " "
|
||||
[:button.delete.is-small {:on-click
|
||||
(dispatch-event [::data-page/filter-changed data-page :exact-match-id nil])}]]])
|
||||
|
||||
|
||||
(when (= "admin" (:user/role user))
|
||||
[:<>
|
||||
(when-let [import-batch-id @(re-frame/subscribe [::data-page/filter data-page :import-batch-id])]
|
||||
[:div
|
||||
[:p.menu-label "Import Batch"]
|
||||
[:span.tag.is-medium import-batch-id " "
|
||||
[:button.delete.is-small {:on-click
|
||||
(dispatch-event [::data-page/filter-changed data-page :import-batch-id nil])}]]])
|
||||
[:p.menu-label "Admin only"]
|
||||
[:div
|
||||
[switch-field {:id "unresolved-only"
|
||||
|
||||
Reference in New Issue
Block a user