1
0
Fork 0
mirror of https://github.com/heyarne/airsonic-ui.git synced 2026-05-07 02:33:39 +02:00

Make code a bit nicer to read / more idiomatic in some places

This commit is contained in:
Arne Schlüter 2018-04-22 01:00:40 +02:00
commit 491c172ae7
3 changed files with 26 additions and 32 deletions

View file

@ -91,9 +91,9 @@
(fn [{:keys [db]} [_ route params query]]
;; all the naviagation logic is in routes.cljs; all we need to do here
;; is say what actually happens once we've navigated succesfully
(println "routes/route-data" (routes/data-for route params query))
(println "routes/route-data" (routes/route-data route params query))
{:db (assoc db :current-route [route params query])
:dispatch (routes/data-for route params query)}))
:dispatch (routes/route-data route params query)}))
(re-frame/reg-event-fx
::routes/unauthorized