fix card-list-table component's no-owned-highlight? option
This commit is contained in:
parent
a7b9cd8d4f
commit
196327ad31
|
@ -54,7 +54,7 @@
|
||||||
(let [sort-settings (r/atom
|
(let [sort-settings (r/atom
|
||||||
{:sort-by :name
|
{:sort-by :name
|
||||||
:ascending? true})]
|
:ascending? true})]
|
||||||
(fn [list-id filters pager]
|
(fn [list-id filters pager & [{:keys [no-owned-highlight?] :as options}]]
|
||||||
(let [cards (view-cursor :cards list-id (auth/get-username) filters (:sort-by @sort-settings) (:ascending? @sort-settings) (:page @pager) (:page-size @pager))
|
(let [cards (view-cursor :cards list-id (auth/get-username) filters (:sort-by @sort-settings) (:ascending? @sort-settings) (:page @pager) (:page-size @pager))
|
||||||
card-count (view-cursor :count-of-cards list-id (auth/get-username) filters)
|
card-count (view-cursor :count-of-cards list-id (auth/get-username) filters)
|
||||||
num-pages (min (js/Math.ceil (/ @card-count (:page-size @pager)))
|
num-pages (min (js/Math.ceil (/ @card-count (:page-size @pager)))
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
[{:field :owned? :value true :comparison :=}]
|
[{:field :owned? :value true :comparison :=}]
|
||||||
[])))))))})
|
[])))))))})
|
||||||
"Limit To List Cards Only?"]]}]
|
"Limit To List Cards Only?"]]}]
|
||||||
[card-list-table list-id @active-search-filters pager #_{:no-owned-highlight? @limit-to-list?}]]))))
|
[card-list-table list-id @active-search-filters pager {:no-owned-highlight? @limit-to-list?}]]))))
|
||||||
|
|
||||||
(defvc list-details
|
(defvc list-details
|
||||||
[list-id]
|
[list-id]
|
||||||
|
|
Loading…
Reference in a new issue