diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/form/integration.go | 9 | ||||
-rw-r--r-- | ui/integrations.go | 3 | ||||
-rw-r--r-- | ui/static/bin.go | 2 | ||||
-rw-r--r-- | ui/static/css.go | 2 | ||||
-rw-r--r-- | ui/static/js.go | 2 |
5 files changed, 15 insertions, 3 deletions
diff --git a/ui/form/integration.go b/ui/form/integration.go index 8cc6d35..f8cadaf 100644 --- a/ui/form/integration.go +++ b/ui/form/integration.go @@ -28,6 +28,9 @@ type IntegrationForm struct { WallabagClientSecret string WallabagUsername string WallabagPassword string + NunuxKeeperEnabled bool + NunuxKeeperURL string + NunuxKeeperAPIKey string } // Merge copy form values to the model. @@ -48,6 +51,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) { integration.WallabagClientSecret = i.WallabagClientSecret integration.WallabagUsername = i.WallabagUsername integration.WallabagPassword = i.WallabagPassword + integration.NunuxKeeperEnabled = i.NunuxKeeperEnabled + integration.NunuxKeeperURL = i.NunuxKeeperURL + integration.NunuxKeeperAPIKey = i.NunuxKeeperAPIKey } // NewIntegrationForm returns a new AuthForm. @@ -69,5 +75,8 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm { WallabagClientSecret: r.FormValue("wallabag_client_secret"), WallabagUsername: r.FormValue("wallabag_username"), WallabagPassword: r.FormValue("wallabag_password"), + NunuxKeeperEnabled: r.FormValue("nunux_keeper_enabled") == "1", + NunuxKeeperURL: r.FormValue("nunux_keeper_url"), + NunuxKeeperAPIKey: r.FormValue("nunux_keeper_api_key"), } } diff --git a/ui/integrations.go b/ui/integrations.go index b301851..7459601 100644 --- a/ui/integrations.go +++ b/ui/integrations.go @@ -46,6 +46,9 @@ func (c *Controller) ShowIntegrations(ctx *handler.Context, request *handler.Req WallabagClientSecret: integration.WallabagClientSecret, WallabagUsername: integration.WallabagUsername, WallabagPassword: integration.WallabagPassword, + NunuxKeeperEnabled: integration.NunuxKeeperEnabled, + NunuxKeeperURL: integration.NunuxKeeperURL, + NunuxKeeperAPIKey: integration.NunuxKeeperAPIKey, }, })) } diff --git a/ui/static/bin.go b/ui/static/bin.go index 11a953b..4db4b0a 100644 --- a/ui/static/bin.go +++ b/ui/static/bin.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-01-02 21:59:10.082800492 -0800 PST m=+0.010175821 +// 2018-02-24 17:47:34.994475549 +0000 GMT package static diff --git a/ui/static/css.go b/ui/static/css.go index 8ced226..d78cd06 100644 --- a/ui/static/css.go +++ b/ui/static/css.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-02-10 22:33:47.060422476 -0800 PST m=+0.024328540 +// 2018-02-24 17:47:34.995215527 +0000 GMT package static diff --git a/ui/static/js.go b/ui/static/js.go index 45fc161..aefa198 100644 --- a/ui/static/js.go +++ b/ui/static/js.go @@ -1,5 +1,5 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-01-29 20:38:56.472493026 -0800 PST m=+0.027898185 +// 2018-02-24 17:47:34.995856638 +0000 GMT package static |