1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Preserve category selection when no feed is found

This commit is contained in:
Frédéric Guillot 2018-12-12 21:31:50 -08:00
parent 82e08d0f69
commit 43ccaf52af
3 changed files with 5 additions and 3 deletions

View file

@ -10,6 +10,7 @@ import (
"miniflux.app/http/client"
"miniflux.app/http/response/html"
"miniflux.app/http/request"
"miniflux.app/ui/form"
"miniflux.app/ui/session"
"miniflux.app/ui/view"
)
@ -36,6 +37,7 @@ func (h *handler) showAddSubscriptionPage(w http.ResponseWriter, r *http.Request
view.Set("countUnread", h.store.CountUnreadEntries(user.ID))
view.Set("countErrorFeeds", h.store.CountErrorFeeds(user.ID))
view.Set("defaultUserAgent", client.DefaultUserAgent)
view.Set("form", &form.SubscriptionForm{CategoryID: 0})
html.OK(w, r, view.Render("add_subscription"))
}