Skip to content

Commit 5dad9e7

Browse files
committed
fix(ui): keep fetch-via-proxy checkbox after feed edit validation error
updateFeed re-renders edit_feed.html when validation fails but never set hasProxyConfigured, so the 'fetch via proxy' checkbox vanished from the re-rendered form for users with a proxy configured. Set it to match feed_edit.go. Latent since the proxy option was introduced (2020).
1 parent c069181 commit 5dad9e7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/ui/feed_update.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (h *handler) updateFeed(w http.ResponseWriter, r *http.Request) {
5252
view.Set("countUnread", navMetadata.CountUnread)
5353
view.Set("countErrorFeeds", navMetadata.CountErrorFeeds)
5454
view.Set("defaultUserAgent", config.Opts.HTTPClientUserAgent())
55+
view.Set("hasProxyConfigured", config.Opts.HasHTTPClientProxyURLConfigured())
5556

5657
feedModificationRequest := &model.FeedModificationRequest{
5758
FeedURL: model.OptionalString(feedForm.FeedURL),

0 commit comments

Comments
 (0)