Commit 20a3ce45 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[ERGO] invert ASC&DESC text in columns. Remove y axis name in charts.

parent 083cbffc
......@@ -143,7 +143,7 @@ yAxis' :: { position :: String
} -> YAxis
yAxis' {position, show, min} = yAxis
{ "type": "value"
, name: "data"
, name: ""
, min: min
, axisLabel: {formatter: "{value}"}
, position
......
......@@ -153,8 +153,8 @@ tableSpec = simpleSpec performAction render
cs :: Array ReactElement
cs =
case currentOrderBy of
Just (ASC d) | c == d -> [lnk (Just (DESC c)) "ASC ", lnk Nothing (columnName c)]
Just (DESC d) | c == d -> [lnk (Just (ASC c)) "DESC ", lnk Nothing (columnName c)]
Just (ASC d) | c == d -> [lnk (Just (DESC c)) "DESC ", lnk Nothing (columnName c)]
Just (DESC d) | c == d -> [lnk (Just (ASC c)) "ASC ", lnk Nothing (columnName c)]
_ -> [lnk (Just (ASC c)) (columnName c)]
render :: Render State Props Action
......
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