aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/form/integration.go9
-rw-r--r--ui/integration_show.go3
-rw-r--r--ui/static/bin.go2
-rw-r--r--ui/static/css.go2
-rw-r--r--ui/static/js.go2
5 files changed, 15 insertions, 3 deletions
diff --git a/ui/form/integration.go b/ui/form/integration.go
index f8cadaf..db095aa 100644
--- a/ui/form/integration.go
+++ b/ui/form/integration.go
@@ -31,6 +31,9 @@ type IntegrationForm struct {
NunuxKeeperEnabled bool
NunuxKeeperURL string
NunuxKeeperAPIKey string
+ PocketEnabled bool
+ PocketAccessToken string
+ PocketConsumerKey string
}
// Merge copy form values to the model.
@@ -54,6 +57,9 @@ func (i IntegrationForm) Merge(integration *model.Integration) {
integration.NunuxKeeperEnabled = i.NunuxKeeperEnabled
integration.NunuxKeeperURL = i.NunuxKeeperURL
integration.NunuxKeeperAPIKey = i.NunuxKeeperAPIKey
+ integration.PocketEnabled = i.PocketEnabled
+ integration.PocketAccessToken = i.PocketAccessToken
+ integration.PocketConsumerKey = i.PocketConsumerKey
}
// NewIntegrationForm returns a new AuthForm.
@@ -78,5 +84,8 @@ func NewIntegrationForm(r *http.Request) *IntegrationForm {
NunuxKeeperEnabled: r.FormValue("nunux_keeper_enabled") == "1",
NunuxKeeperURL: r.FormValue("nunux_keeper_url"),
NunuxKeeperAPIKey: r.FormValue("nunux_keeper_api_key"),
+ PocketEnabled: r.FormValue("pocket_enabled") == "1",
+ PocketAccessToken: r.FormValue("pocket_access_token"),
+ PocketConsumerKey: r.FormValue("pocket_consumer_key"),
}
}
diff --git a/ui/integration_show.go b/ui/integration_show.go
index 703f610..d368d85 100644
--- a/ui/integration_show.go
+++ b/ui/integration_show.go
@@ -50,6 +50,9 @@ func (c *Controller) ShowIntegrations(w http.ResponseWriter, r *http.Request) {
NunuxKeeperEnabled: integration.NunuxKeeperEnabled,
NunuxKeeperURL: integration.NunuxKeeperURL,
NunuxKeeperAPIKey: integration.NunuxKeeperAPIKey,
+ PocketEnabled: integration.PocketEnabled,
+ PocketAccessToken: integration.PocketAccessToken,
+ PocketConsumerKey: integration.PocketConsumerKey,
}
sess := session.New(c.store, ctx)
diff --git a/ui/static/bin.go b/ui/static/bin.go
index 4db4b0a..a5c0ed0 100644
--- a/ui/static/bin.go
+++ b/ui/static/bin.go
@@ -1,5 +1,5 @@
// Code generated by go generate; DO NOT EDIT.
-// 2018-02-24 17:47:34.994475549 +0000 GMT
+// 2018-05-20 11:35:19.492969127 -0700 PDT m=+0.004803782
package static
diff --git a/ui/static/css.go b/ui/static/css.go
index f29d789..8e28baf 100644
--- a/ui/static/css.go
+++ b/ui/static/css.go
@@ -1,5 +1,5 @@
// Code generated by go generate; DO NOT EDIT.
-// 2018-05-19 15:45:16.654304958 -0700 PDT m=+0.017095824
+// 2018-05-20 11:35:19.493979584 -0700 PDT m=+0.005814260
package static
diff --git a/ui/static/js.go b/ui/static/js.go
index aefa198..b507236 100644
--- a/ui/static/js.go
+++ b/ui/static/js.go
@@ -1,5 +1,5 @@
// Code generated by go generate; DO NOT EDIT.
-// 2018-02-24 17:47:34.995856638 +0000 GMT
+// 2018-05-20 11:35:19.494515654 -0700 PDT m=+0.006350329
package static