diff options
Diffstat (limited to 'internal/ui')
-rw-r--r-- | internal/ui/form/integration.go | 12 | ||||
-rw-r--r-- | internal/ui/integration_show.go | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/internal/ui/form/integration.go b/internal/ui/form/integration.go index 9e60d6fd..5a332f28 100644 --- a/internal/ui/form/integration.go +++ b/internal/ui/form/integration.go @@ -62,6 +62,10 @@ type IntegrationForm struct { AppriseEnabled bool AppriseURL string AppriseServicesURL string + ShioriEnabled bool + ShioriURL string + ShioriUsername string + ShioriPassword string } // Merge copy form values to the model. @@ -115,6 +119,10 @@ func (i IntegrationForm) Merge(integration *model.Integration) { integration.AppriseEnabled = i.AppriseEnabled integration.AppriseServicesURL = i.AppriseServicesURL integration.AppriseURL = i.AppriseURL + integration.ShioriEnabled = i.ShioriEnabled + integration.ShioriURL = i.ShioriURL + integration.ShioriUsername = i.ShioriUsername + integration.ShioriPassword = i.ShioriPassword } // NewIntegrationForm returns a new IntegrationForm. @@ -171,5 +179,9 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm { AppriseEnabled: r.FormValue("apprise_enabled") == "1", AppriseURL: r.FormValue("apprise_url"), AppriseServicesURL: r.FormValue("apprise_services_url"), + ShioriEnabled: r.FormValue("shiori_enabled") == "1", + ShioriURL: r.FormValue("shiori_url"), + ShioriUsername: r.FormValue("shiori_username"), + ShioriPassword: r.FormValue("shiori_password"), } } diff --git a/internal/ui/integration_show.go b/internal/ui/integration_show.go index 405628dc..b1985d51 100644 --- a/internal/ui/integration_show.go +++ b/internal/ui/integration_show.go @@ -77,6 +77,10 @@ func (h *handler) showIntegrationPage(w http.ResponseWriter, r *http.Request) { AppriseEnabled: integration.AppriseEnabled, AppriseURL: integration.AppriseURL, AppriseServicesURL: integration.AppriseServicesURL, + ShioriEnabled: integration.ShioriEnabled, + ShioriURL: integration.ShioriURL, + ShioriUsername: integration.ShioriUsername, + ShioriPassword: integration.ShioriPassword, } sess := session.New(h.store, request.SessionID(r)) |