Refactor: Filter form (#31)

* chore: add packages

* chore: disable tailwind jit

* refactor: update base layout structure

* refactor: filter to single form with formik

* feat: save filter actions on save

* feat: disable form dirty
This commit is contained in:
Ludvig Lundgren 2021-09-19 20:58:47 +02:00 committed by GitHub
parent c092ffc62d
commit 974ca95d80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 1915 additions and 1112 deletions

View file

@ -189,6 +189,16 @@ func (s *service) Update(filter domain.Filter) (*domain.Filter, error) {
}
}
// store actions
if filter.Actions != nil {
for _, action := range filter.Actions {
if _, err := s.actionRepo.Store(action); err != nil {
log.Error().Err(err).Msgf("could not store filter actions: %v", filter.Name)
return nil, err
}
}
}
return f, nil
}