From b270159aae97359afe02f3c4843fa0f4e9a1a1b6 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 21 May 2018 12:19:56 -0700 Subject: Offer the possibility to set Pocket Consumer Key as environment variable --- ui/integration_show.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/integration_show.go') diff --git a/ui/integration_show.go b/ui/integration_show.go index d368d85..31d374f 100644 --- a/ui/integration_show.go +++ b/ui/integration_show.go @@ -61,6 +61,7 @@ func (c *Controller) ShowIntegrations(w http.ResponseWriter, r *http.Request) { view.Set("menu", "settings") view.Set("user", user) view.Set("countUnread", c.store.CountUnreadEntries(user.ID)) + view.Set("hasPocketConsumerKeyConfigured", c.cfg.PocketConsumerKey("") != "") html.OK(w, view.Render("integrations")) } -- cgit v1.2.3