diff --git a/src/mtgcoll/client/routes/collection.cljs b/src/mtgcoll/client/routes/collection.cljs index 15382f5..0303969 100644 --- a/src/mtgcoll/client/routes/collection.cljs +++ b/src/mtgcoll/client/routes/collection.cljs @@ -5,6 +5,7 @@ [webtools.reagent.bootstrap :as bs] [webtools.reagent.components :refer [->keyed-comps]] [webtools.cljs.utils :refer [pprint-json]] + [mtgcoll.common :as c] [mtgcoll.client.page :refer [set-active-breadcrumb!]] [mtgcoll.client.components.cards :refer [card-list-table ->card-list-pager]] [mtgcoll.client.components.search :as s] @@ -17,7 +18,7 @@ [] (let [active-search-filters (r/cursor all-cards-search-filters [:active-filters]) pager (r/cursor all-cards-search-filters [:pager]) - list-id 0] + list-id c/owned-list-id] (fn [] (set-active-breadcrumb! :all) [:div @@ -35,7 +36,7 @@ (let [fixed-filters [{:field :owned? :value true :comparison :=}] active-search-filters (r/cursor owned-cards-search-filters [:active-filters]) pager (r/cursor owned-cards-search-filters [:pager]) - list-id 0] + list-id c/owned-list-id] (s/apply-search-filters! owned-cards-search-filters fixed-filters) (fn [] (set-active-breadcrumb! :owned) diff --git a/src/mtgcoll/client/routes/sets.cljs b/src/mtgcoll/client/routes/sets.cljs index ed2a31c..1d59c03 100644 --- a/src/mtgcoll/client/routes/sets.cljs +++ b/src/mtgcoll/client/routes/sets.cljs @@ -5,6 +5,7 @@ [views.reagent.client.component :as vc :refer [view-cursor] :refer-macros [defvc]] [webtools.reagent.bootstrap :as bs] [webtools.cljs.utils :refer [->url]] + [mtgcoll.common :as c] [mtgcoll.client.page :refer [set-active-breadcrumb!]] [mtgcoll.client.components.cards :refer [card-list-table ->card-list-pager]] [mtgcoll.client.components.utils :refer [set-image set-label set-heading th-sortable]] @@ -62,7 +63,7 @@ (let [fixed-filters [{:field :set-code :value set-code :comparison :=}] active-search-filters (r/cursor set-cards-search-filters [:active-filters]) pager (r/cursor set-cards-search-filters [:pager]) - list-id 0] + list-id c/owned-list-id] (s/apply-search-filters! set-cards-search-filters fixed-filters) (fn [] [:div.set-cards-list diff --git a/src/mtgcoll/client/routes/stats.cljs b/src/mtgcoll/client/routes/stats.cljs index e6bf77b..f6c1df1 100644 --- a/src/mtgcoll/client/routes/stats.cljs +++ b/src/mtgcoll/client/routes/stats.cljs @@ -6,6 +6,7 @@ [webtools.reagent.bootstrap :as bs] [webtools.reagent.components :refer [->keyed-comps]] [webtools.cljs.utils :refer [->url]] + [mtgcoll.common :as c] [mtgcoll.client.auth :as auth] [mtgcoll.client.page :refer [set-active-breadcrumb!]] [mtgcoll.client.utils :refer [format-number format-currency get-field-value]] @@ -242,7 +243,7 @@ (let [pricing-sources (view-cursor :pricing-sources) online? (:online? @settings) pricing-source (:pricing-source @settings) - list-id 0] + list-id c/owned-list-id] (set-active-breadcrumb! :stats) (if (and (not (vc/loading? pricing-sources)) (nil? (:pricing-source @settings))) diff --git a/src/mtgcoll/common.cljc b/src/mtgcoll/common.cljc index fe99dfb..34d377c 100644 --- a/src/mtgcoll/common.cljc +++ b/src/mtgcoll/common.cljc @@ -1,3 +1,5 @@ (ns mtgcoll.common) (def max-search-results 1000) + +(def owned-list-id 0)