mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
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:
parent
c092ffc62d
commit
974ca95d80
19 changed files with 1915 additions and 1112 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue