Commit eb3f5f0c authored by Karen Konou's avatar Karen Konou

[Options] fix list when updating a node

parent 1dbf3d8b
...@@ -55,7 +55,7 @@ updateDashboardCpt = here.component "updateDashboard" cpt where ...@@ -55,7 +55,7 @@ updateDashboardCpt = here.component "updateDashboard" cpt where
pure $ panel [ -- H.text "Update with" pure $ panel [ -- H.text "Update with"
formChoiceSafe { items: [All, Sources, Authors, Institutes, Ngrams] formChoiceSafe { items: [All, Sources, Authors, Institutes, Ngrams]
, default: All , default: methodBoard'
, callback: \val -> T.write_ val methodBoard , callback: \val -> T.write_ val methodBoard
, print: show } [] , print: show } []
] ]
...@@ -71,7 +71,7 @@ updateGraphCpt = here.component "updateGraph" cpt where ...@@ -71,7 +71,7 @@ updateGraphCpt = here.component "updateGraph" cpt where
pure $ panel [ -- H.text "Update with" pure $ panel [ -- H.text "Update with"
formChoiceSafe { items: [Order1, Order2] formChoiceSafe { items: [Order1, Order2]
, default: Order1 , default: methodGraph'
, callback: \val -> T.write_ val methodGraph , callback: \val -> T.write_ val methodGraph
, print: show } [] , print: show } []
] ]
...@@ -87,7 +87,7 @@ updateNodeListCpt = here.component "updateNodeList" cpt where ...@@ -87,7 +87,7 @@ updateNodeListCpt = here.component "updateNodeList" cpt where
pure $ panel [ -- H.text "Update with" pure $ panel [ -- H.text "Update with"
formChoiceSafe { items: [Basic, Advanced, WithModel] formChoiceSafe { items: [Basic, Advanced, WithModel]
, default: Basic , default: methodList'
, callback: \val -> T.write_ val methodList , callback: \val -> T.write_ val methodList
, print: show } [] , print: show } []
] ]
...@@ -103,7 +103,7 @@ updateTextsCpt = here.component "updateTexts" cpt where ...@@ -103,7 +103,7 @@ updateTextsCpt = here.component "updateTexts" cpt where
pure $ panel [ -- H.text "Update with" pure $ panel [ -- H.text "Update with"
formChoiceSafe { items: [NewNgrams, NewTexts, Both] formChoiceSafe { items: [NewNgrams, NewTexts, Both]
, default: NewNgrams , default: methodTexts'
, callback: \val -> T.write_ val methodTexts , callback: \val -> T.write_ val methodTexts
, print: show } [] , print: show } []
] ]
......
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