Update to hmc v0.9.0
This commit is contained in:
parent
c069ad02ce
commit
e6bf0da7c6
@ -9,7 +9,7 @@ require (
|
|||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Teajey/hmc v0.6.0-rc.12
|
github.com/Teajey/hmc v0.9.0
|
||||||
github.com/gorilla/securecookie v1.1.2
|
github.com/gorilla/securecookie v1.1.2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
github.com/Teajey/hmc v0.6.0-rc.12 h1:Vkx6mJa3pfMlYx4vyI9LfVLHa8fNyl8LikMvXBfDGZk=
|
github.com/Teajey/hmc v0.6.0-rc.12 h1:Vkx6mJa3pfMlYx4vyI9LfVLHa8fNyl8LikMvXBfDGZk=
|
||||||
github.com/Teajey/hmc v0.6.0-rc.12/go.mod h1:9K7SL4RyybNLHooqsZcyFoL6QGqqa2zPgIBidw4qWQY=
|
github.com/Teajey/hmc v0.6.0-rc.12/go.mod h1:9K7SL4RyybNLHooqsZcyFoL6QGqqa2zPgIBidw4qWQY=
|
||||||
|
github.com/Teajey/hmc v0.9.0 h1:OYDn95/ZheJlVQTXFIztsuU2jUG57XahcMpJZ5dM1VQ=
|
||||||
|
github.com/Teajey/hmc v0.9.0/go.mod h1:9K7SL4RyybNLHooqsZcyFoL6QGqqa2zPgIBidw4qWQY=
|
||||||
github.com/Teajey/rsvp v0.19.0-rc.2 h1:h4V7c3uGlSKajkWKt3fldFV+XTMEI8A4o05PMY8xv9A=
|
github.com/Teajey/rsvp v0.19.0-rc.2 h1:h4V7c3uGlSKajkWKt3fldFV+XTMEI8A4o05PMY8xv9A=
|
||||||
github.com/Teajey/rsvp v0.19.0-rc.2/go.mod h1:z0L20VphVg+Ec2+hnpLFTG2MZTrWYFprav1kpxDba0Q=
|
github.com/Teajey/rsvp v0.19.0-rc.2/go.mod h1:z0L20VphVg+Ec2+hnpLFTG2MZTrWYFprav1kpxDba0Q=
|
||||||
github.com/Teajey/rsvp v0.21.1 h1:qDo0VHvatOKFG6oqsq3daPOq0TU9pjicdz5mwxwGMO4=
|
github.com/Teajey/rsvp v0.21.1 h1:qDo0VHvatOKFG6oqsq3daPOq0TU9pjicdz5mwxwGMO4=
|
||||||
|
|||||||
@ -178,19 +178,19 @@ func InitialTodo(todo []lishwist.Wish) Wishlist {
|
|||||||
|
|
||||||
func (w Wishlist) ExtractFormValues(form url.Values) {
|
func (w Wishlist) ExtractFormValues(form url.Values) {
|
||||||
if w.NewWish != nil {
|
if w.NewWish != nil {
|
||||||
w.NewWish.Elements.ExtractFormValue(form)
|
_ = w.NewWish.Elements.ExtractValue(form)
|
||||||
}
|
}
|
||||||
|
|
||||||
if w.Wishes == nil {
|
if w.Wishes == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err := w.Wishes.Elements.Select.ExtractFormValue(form)
|
err := w.Wishes.Elements.Select.ExtractValue(form)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.Wishes.Elements.Select.Error = err.Error()
|
w.Wishes.Elements.Select.Error = err.Error()
|
||||||
}
|
}
|
||||||
|
|
||||||
err = w.Wishes.Elements.Intent.ExtractFormValue(form)
|
err = w.Wishes.Elements.Intent.ExtractValue(form)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.Wishes.Elements.Intent.Error = err.Error()
|
w.Wishes.Elements.Intent.Error = err.Error()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user