Commit 6c6ff3e5 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] removing useless buttons now

parent adf4c69d
......@@ -102,8 +102,8 @@ histoCpt = R2.hooksComponent thisModule "histo" cpt
loaded :: Record MetricsProps -> HistoMetrics -> R.Element
loaded { path, reload, session } loaded =
H.div {} [
U.reloadButton reload
{- U.reloadButton reload
, U.chartUpdateButton { chartType: Histo, path, reload, session }
, chart $ chartOptions loaded
, -} chart $ chartOptions loaded
]
-- TODO: parametrize ngramsType above
......@@ -136,7 +136,7 @@ metricsCpt = R2.hooksComponent thisModule "etrics" cpt
loaded :: Record MetricsProps -> Loaded -> R.Element
loaded { path, reload, session } loaded =
H.div {} [
U.reloadButton reload
{- U.reloadButton reload
, U.chartUpdateButton { chartType: Scatter, path, reload, session }
, chart $ scatterOptions loaded
, -} chart $ scatterOptions loaded
]
......@@ -122,9 +122,9 @@ pieCpt = R2.hooksComponent thisModule "pie" cpt
loadedPie :: Record MetricsProps -> HistoMetrics -> R.Element
loadedPie { path, reload, session } loaded =
H.div {} [
U.reloadButton reload
{- U.reloadButton reload
, U.chartUpdateButton { chartType: ChartPie, path, reload, session }
, chart $ chartOptionsPie loaded
, -} chart $ chartOptionsPie loaded
]
......@@ -150,7 +150,7 @@ barCpt = R2.hooksComponent thisModule "bar" cpt
loadedBar :: Record MetricsProps -> Loaded -> R.Element
loadedBar { path, reload, session } loaded =
H.div {} [
U.reloadButton reload
{- U.reloadButton reload
, U.chartUpdateButton { chartType: ChartBar, path, reload, session }
, chart $ chartOptionsBar loaded
, -} chart $ chartOptionsBar loaded
]
......@@ -94,7 +94,7 @@ treeCpt = R2.hooksComponent thisModule "tree" cpt
loaded :: Record MetricsProps -> Loaded -> R.Element
loaded { path, reload, session } loaded =
H.div {} [
U.reloadButton reload
{- U.reloadButton reload
, U.chartUpdateButton { chartType: ChartTree, path, reload, session }
, chart (scatterOptions loaded)
, -} chart (scatterOptions loaded)
]
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