diff options
Diffstat (limited to 'internal/ui/form/integration.go')
-rw-r--r-- | internal/ui/form/integration.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/ui/form/integration.go b/internal/ui/form/integration.go index 2976ed6d..c232494f 100644 --- a/internal/ui/form/integration.go +++ b/internal/ui/form/integration.go @@ -79,6 +79,9 @@ type IntegrationForm struct { WebhookSecret string RSSBridgeEnabled bool RSSBridgeURL string + OmnivoreEnabled bool + OmnivoreAPIKey string + OmnivoreURL string } // Merge copy form values to the model. @@ -147,6 +150,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) { integration.WebhookURL = i.WebhookURL integration.RSSBridgeEnabled = i.RSSBridgeEnabled integration.RSSBridgeURL = i.RSSBridgeURL + integration.OmnivoreEnabled = i.OmnivoreEnabled + integration.OmnivoreAPIKey = i.OmnivoreAPIKey + integration.OmnivoreURL = i.OmnivoreURL } // NewIntegrationForm returns a new IntegrationForm. @@ -218,6 +224,9 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm { WebhookURL: r.FormValue("webhook_url"), RSSBridgeEnabled: r.FormValue("rssbridge_enabled") == "1", RSSBridgeURL: r.FormValue("rssbridge_url"), + OmnivoreEnabled: r.FormValue("omnivore_enabled") == "1", + OmnivoreAPIKey: r.FormValue("omnivore_api_key"), + OmnivoreURL: r.FormValue("omnivore_url"), } } |