Last active
December 30, 2015 17:01
-
-
Save dark4eg/d7dc2364606fae3fb435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defui B | |
static om/IQueryParams | |
(params [this] | |
{:paging-skip 0 | |
:paging-take 5 | |
:sort-keys [:promo/name :inspection/promo] | |
:sort-type :asc}) | |
static om/IQuery | |
(query [this] | |
'[:inspection.list/outlet {:paging {:skip ?paging-skip | |
:take ?paging-take} | |
:filters {} | |
:sorting {:keys ?sort-keys | |
:type ?sort-type}}])) | |
(defui A | |
static om/IQueryParams | |
(params [this] | |
{:page (:index route->url) | |
:paging-skip 0 | |
:paging-take 5 | |
:filter-unverified true | |
:filter-partials true | |
:filter-full true | |
:filter-distributor [] | |
:filter-employeer [] | |
:filter-outlet [] | |
:filter-promo [] | |
:sort-keys [:promo/name :inspection/promo] | |
:sort-type :asc}) | |
static om/IQuery | |
(query [this] | |
`[:app/title | |
:user/current | |
:route/current | |
:route/list | |
:view/state | |
:user/children | |
:inspection.target/current | |
(:employee/list {:paging {:skip 0 | |
:take 0}}) | |
(:outlet/list {:paging {:skip 0 | |
:take 0}}) | |
(:inspection.list/outlet ~(om/get-query B))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment