Espial
diff --git a/internal/ui/form/integration.go b/internal/ui/form/integration.go
index 7809a3ff..5a6ac271 100644
--- a/internal/ui/form/integration.go
+++ b/internal/ui/form/integration.go
@@ -100,6 +100,9 @@ type IntegrationForm struct {
RaindropToken string
RaindropCollectionID string
RaindropTags string
+ BetulaEnabled bool
+ BetulaURL string
+ BetulaToken string
}
// Merge copy form values to the model.
@@ -189,6 +192,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
integration.RaindropToken = i.RaindropToken
integration.RaindropCollectionID = i.RaindropCollectionID
integration.RaindropTags = i.RaindropTags
+ integration.BetulaEnabled = i.BetulaEnabled
+ integration.BetulaURL = i.BetulaURL
+ integration.BetulaToken = i.BetulaToken
}
// NewIntegrationForm returns a new IntegrationForm.
@@ -281,6 +287,9 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
RaindropToken: r.FormValue("raindrop_token"),
RaindropCollectionID: r.FormValue("raindrop_collection_id"),
RaindropTags: r.FormValue("raindrop_tags"),
+ BetulaEnabled: r.FormValue("betula_enabled") == "1",
+ BetulaURL: r.FormValue("betula_url"),
+ BetulaToken: r.FormValue("betula_token"),
}
}
diff --git a/internal/ui/integration_show.go b/internal/ui/integration_show.go
index 8b3299a4..0e93093f 100644
--- a/internal/ui/integration_show.go
+++ b/internal/ui/integration_show.go
@@ -114,6 +114,9 @@ func (h *handler) showIntegrationPage(w http.ResponseWriter, r *http.Request) {
RaindropToken: integration.RaindropToken,
RaindropCollectionID: integration.RaindropCollectionID,
RaindropTags: integration.RaindropTags,
+ BetulaEnabled: integration.BetulaEnabled,
+ BetulaURL: integration.BetulaURL,
+ BetulaToken: integration.BetulaToken,
}
sess := session.New(h.store, request.SessionID(r))