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

fix loading not showing when switching to forcedirectedgraph

parent 8c3baa85
No related branches found
No related tags found
No related merge requests found
Pipeline #24405 failed
......@@ -88,8 +88,15 @@ update msg ( global, local ) =
ViewChange newView ->
case newView of
ForceDirectedGraph ->
let
fdg =
local.forcedirectedgraph
loadingfdg =
{ fdg | loading = True }
in
( ( { global | view = newView }, local )
, ForceDirectedGraphView.calculateModel global.data local.forcedirectedgraph |> Cmd.map ForceDirectedGraphView.propagate
, ForceDirectedGraphView.calculateModel global.data loadingfdg |> Cmd.map ForceDirectedGraphView.propagate
)
_ ->
......
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