Adds the ability to suppress transactions

This commit is contained in:
2021-12-16 07:26:02 -08:00
parent a76b84fd8d
commit 1d312dd55d
7 changed files with 27 additions and 13 deletions

View File

@@ -95,7 +95,6 @@
(let [checked @(re-frame/subscribe [::data-page/checked ::page])
checked-params (get checked "header")
specific-transactions (map :id (vals (dissoc checked "header")))]
(println checked-params)
{:db (-> (:db cofx)
(assoc-in [:status :loading] true))
:graphql {:token (-> cofx :db :user)
@@ -109,7 +108,8 @@
:ids specific-transactions}
[:message]]}]}
:on-success (fn [result]
[::params-change params])}})))
[::params-change params])}
:dispatch [::data-page/reset-checked ::page]})))
(re-frame/reg-event-fx
::unmounted
@@ -186,7 +186,7 @@
:class (status/class-for @(re-frame/subscribe [::status/single ::delete-selected]))
:disabled (or (status/disabled-for @(re-frame/subscribe [::status/single ::delete-selected]))
(not (seq checked)))}
"Delete selected"]]])
"Suppress selected"]]])
[table/table {:id :transactions
:check-boxes? is-admin?
:data-page ::page}]]))