diff --git a/entities/project.go b/entities/project.go index 28029c4..1b28888 100644 --- a/entities/project.go +++ b/entities/project.go @@ -67,6 +67,9 @@ func (requirement *Requirement) Update(update models.RequirementUpdate) { if update.AggregateRequired != nil { requirement.AggregateRequired = *update.AggregateRequired } + if update.ProjectID != nil { + requirement.ProjectID = *update.ProjectID + } if update.RemoveTags != nil || update.AddTags != nil { requirement.Tags = genutils.SliceWithout(requirement.Tags, update.RemoveTags) diff --git a/frontend/src/lib/components/common/Modal.svelte b/frontend/src/lib/components/common/Modal.svelte index de2424e..8a6a507 100644 --- a/frontend/src/lib/components/common/Modal.svelte +++ b/frontend/src/lib/components/common/Modal.svelte @@ -176,7 +176,7 @@ padding: 0.45em 1ch; width: 100%; } - div.modal :global(select option) { + div.modal :global(select option), div.modal :global(select optgroup) { -webkit-appearance: none; -moz-appearance: none; appearance: none; diff --git a/frontend/src/lib/components/controls/ProjectSelect.svelte b/frontend/src/lib/components/controls/ProjectSelect.svelte new file mode 100644 index 0000000..6a6a3a5 --- /dev/null +++ b/frontend/src/lib/components/controls/ProjectSelect.svelte @@ -0,0 +1,30 @@ + + + diff --git a/frontend/src/lib/components/scope/ProjectMenu.svelte b/frontend/src/lib/components/scope/ProjectMenu.svelte index 2dd66e1..b4212bb 100644 --- a/frontend/src/lib/components/scope/ProjectMenu.svelte +++ b/frontend/src/lib/components/scope/ProjectMenu.svelte @@ -1,7 +1,7 @@