Skip to content
Snippets Groups Projects
Commit d4dc998b authored by Aamon Paul Hoffmann's avatar Aamon Paul Hoffmann
Browse files

fix not showing spinner when changin views (for real now)

parent 0ab19545
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ update msg ( global, local ) = ...@@ -95,7 +95,7 @@ update msg ( global, local ) =
loadingfdg = loadingfdg =
{ fdg | loading = True } { fdg | loading = True }
in in
( ( { global | view = newView }, local ) ( ( { global | view = newView }, { local | forcedirectedgraph = loadingfdg } )
, ForceDirectedGraphView.calculateModel global.data loadingfdg |> Cmd.map ForceDirectedGraphView.propagate , ForceDirectedGraphView.calculateModel global.data loadingfdg |> Cmd.map ForceDirectedGraphView.propagate
) )
......
...@@ -404,14 +404,11 @@ postInit data local = ...@@ -404,14 +404,11 @@ postInit data local =
list = list =
Force.computeSimulation (Force.simulation forces) <| List.map .label <| Graph.nodes graph Force.computeSimulation (Force.simulation forces) <| List.map .label <| Graph.nodes graph
in in
Task.succeed (Ok { firstInit | loading = True }) Task.succeed
|> Task.andThen (Ok
(\_ -> --(Local.Model (updateGraphWithList graph list) (Force.simulation forces) 0 True "" 0 0)
Task.succeed { local | graph = updateGraphWithList graph list, simulation = Force.simulation forces, loading = True }
(Ok )
(Local.Model (updateGraphWithList graph list) (Force.simulation forces) 0 False "" 0 0)
)
)
isSchengen : Graph.Node Local.Entity -> List Entry -> Bool isSchengen : Graph.Node Local.Entity -> List Entry -> Bool
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment