make limit-to-list? option persist between back/forward page navigation
could get annoying as it would constantly be resetting back to the default as the user clicked into different cards (for example) and then went back to the list
This commit is contained in:
parent
196327ad31
commit
2cc0c65f0e
|
@ -134,10 +134,11 @@
|
|||
(defonce list-cards-search-filters
|
||||
(r/atom (s/->search-filters)))
|
||||
|
||||
(defonce limit-to-list? (r/atom true))
|
||||
|
||||
(defn list-cards-list
|
||||
[list-id]
|
||||
(let [limit-to-list? (r/atom true)
|
||||
fixed-filters [{:field :owned? :value true :comparison :=}]
|
||||
(let [fixed-filters (if @limit-to-list? [{:field :owned? :value true :comparison :=}] [])
|
||||
active-search-filters (r/cursor list-cards-search-filters [:active-filters])
|
||||
pager (r/cursor list-cards-search-filters [:pager])]
|
||||
(s/apply-search-filters! list-cards-search-filters fixed-filters)
|
||||
|
|
Loading…
Reference in a new issue