aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/ui
diff options
context:
space:
mode:
Diffstat (limited to 'server/ui')
-rw-r--r--server/ui/controller/integrations.go6
-rw-r--r--server/ui/form/integration.go18
2 files changed, 24 insertions, 0 deletions
diff --git a/server/ui/controller/integrations.go b/server/ui/controller/integrations.go
index babcfb7..99971b0 100644
--- a/server/ui/controller/integrations.go
+++ b/server/ui/controller/integrations.go
@@ -40,6 +40,12 @@ func (c *Controller) ShowIntegrations(ctx *core.Context, request *core.Request,
FeverEnabled: integration.FeverEnabled,
FeverUsername: integration.FeverUsername,
FeverPassword: integration.FeverPassword,
+ WallabagEnabled: integration.WallabagEnabled,
+ WallabagURL: integration.WallabagURL,
+ WallabagClientID: integration.WallabagClientID,
+ WallabagClientSecret: integration.WallabagClientSecret,
+ WallabagUsername: integration.WallabagUsername,
+ WallabagPassword: integration.WallabagPassword,
},
}))
}
diff --git a/server/ui/form/integration.go b/server/ui/form/integration.go
index 209b842..8cc6d35 100644
--- a/server/ui/form/integration.go
+++ b/server/ui/form/integration.go
@@ -22,6 +22,12 @@ type IntegrationForm struct {
FeverEnabled bool
FeverUsername string
FeverPassword string
+ WallabagEnabled bool
+ WallabagURL string
+ WallabagClientID string
+ WallabagClientSecret string
+ WallabagUsername string
+ WallabagPassword string
}
// Merge copy form values to the model.
@@ -36,6 +42,12 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
integration.FeverEnabled = i.FeverEnabled
integration.FeverUsername = i.FeverUsername
integration.FeverPassword = i.FeverPassword
+ integration.WallabagEnabled = i.WallabagEnabled
+ integration.WallabagURL = i.WallabagURL
+ integration.WallabagClientID = i.WallabagClientID
+ integration.WallabagClientSecret = i.WallabagClientSecret
+ integration.WallabagUsername = i.WallabagUsername
+ integration.WallabagPassword = i.WallabagPassword
}
// NewIntegrationForm returns a new AuthForm.
@@ -51,5 +63,11 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
FeverEnabled: r.FormValue("fever_enabled") == "1",
FeverUsername: r.FormValue("fever_username"),
FeverPassword: r.FormValue("fever_password"),
+ WallabagEnabled: r.FormValue("wallabag_enabled") == "1",
+ WallabagURL: r.FormValue("wallabag_url"),
+ WallabagClientID: r.FormValue("wallabag_client_id"),
+ WallabagClientSecret: r.FormValue("wallabag_client_secret"),
+ WallabagUsername: r.FormValue("wallabag_username"),
+ WallabagPassword: r.FormValue("wallabag_password"),
}
}