Skip to content
Snippets Groups Projects
Commit 501402fe authored by Sabed Ger's avatar Sabed Ger
Browse files

fixed bug in ShapePicture Viewer

parent 6cae0c01
No related branches found
No related tags found
No related merge requests found
......@@ -62,5 +62,21 @@ viewViewer model =
(List.concat
[ standardViewPart
,[viewImage model]
, case (getModalFromState model.state) of
NoModal -> []
ShowInput _ _ _ -> []
ShowTable -> []
ShowShape id edit -> [viewShapeModal id edit
( model.saved
|> List.take (id )
|> List.drop (id-1)
|> List.head
|> Maybe.withDefault (Empty,defaultShapeStyle)
|> Tuple.second
)
]
ShowJson -> []
EditShape _ _ -> []
ShowManagePicture _ _ _ _ -> []
]
)
\ No newline at end of file
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