supports filtering down to just duplicates.
This commit is contained in:
@@ -119,12 +119,7 @@
|
||||
|
||||
(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"
|
||||
@@ -132,5 +127,20 @@
|
||||
:on-change (fn [e]
|
||||
(re-frame/dispatch [::data-page/filter-changed data-page :unresolved (.-checked (.-target e))]))
|
||||
:label "Unresolved only"
|
||||
:type "checkbox"}]]
|
||||
|
||||
(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])}]]])
|
||||
|
||||
[:div
|
||||
[switch-field {:id "potentially-duplicate"
|
||||
:checked (boolean @(re-frame/subscribe [::data-page/filter data-page :potential-duplicates]))
|
||||
:on-change (fn [e]
|
||||
(re-frame/dispatch [::data-page/filter-changed data-page :potential-duplicates (.-checked (.-target e))]))
|
||||
:label "Same Amount + Date"
|
||||
:type "checkbox"}]]])]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user