Commit 4da3a030 authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

Renaming background's :data-import -> :data-load

This will make it clearer than it's a separate action from the actual
JSON import done on display.  Removed leftover state set from back when
that handler got JSON data.
parent 5c08ab13
......@@ -98,7 +98,7 @@
::initialize
(fn [_]
(go
(dispatch [:data-import (<! (data/get))])
(dispatch [:data-load (<! (data/get))])
(dispatch [::window-focus {:windowId (:id (<! (windows/get-last-focused {:populate false})))}])
(dispatch [:idle-state-change {:newState (<! (idle/query-state 30))}]))
{:app-state {}
......@@ -106,7 +106,7 @@
(register-handler
:data-import
:data-load
(fn [app-state [_ new-data]]
(console/trace "New data on import" new-data)
;; Create a new id if we don't have one
......@@ -129,7 +129,6 @@
(dispatch [:handle-deactivation old-tab (:time suspend-info)])))
(-> app-state
(assoc-in [:ui-state :section] :time-track)
(assoc-in [:app-state :import] nil)
(assoc :hookup-done? true)
(assoc :data (assoc new-data :suspend-info nil)))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment