Commit e9dab3a2 authored by Emmanuel Raviart's avatar Emmanuel Raviart

In new value modal use the good default card types for the autocompleter. Fix #82.

parent 5f41258c
......@@ -29,10 +29,24 @@ init authentication language languageIso639_1 validFieldTypes =
Nothing ->
"TextField"
cardTypes =
case fieldType of
"OrganizationIdField" ->
cardTypesForOrganization
"ToolIdField" ->
cardTypesForTool
"UseCaseIdField" ->
cardTypesForUseCase
_ ->
cardTypesForTool
in
{ authentication = authentication
, booleanValue = False
, cardsAutocompleteModel = Cards.Autocomplete.State.init cardTypesForTool False
, cardsAutocompleteModel = Cards.Autocomplete.State.init cardTypes False
, errors = Dict.empty
, field = Nothing
, fieldType = fieldType
......
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