Allow to choose from existing tag categories

Also fixes a ui problem with a too long dropdown menu in the small
modal popup when adding tags or custom fields in item detail view.

Issue: #331
This commit is contained in:
Eike Kettner
2020-11-26 22:48:10 +01:00
parent 5a7d39add6
commit c87163052b
7 changed files with 103 additions and 24 deletions

View File

@ -165,11 +165,11 @@ initTag itemId tm =
init itemId (TM tm)
initTagByName : String -> String -> Model
initTagByName itemId name =
initTagByName : String -> String -> List String -> Model
initTagByName itemId name categories =
let
tm =
Comp.TagForm.emptyModel
Comp.TagForm.emptyModel categories
tm_ =
{ tm | name = name }