From 31da4db14fdda364b1c72460a81e3ccce67ff7e8 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 29 Apr 2018 17:43:40 -0700 Subject: Do not show save link if no integration is configured --- ui/bookmark_entries.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/bookmark_entries.go') diff --git a/ui/bookmark_entries.go b/ui/bookmark_entries.go index c5f7de3..2dac892 100644 --- a/ui/bookmark_entries.go +++ b/ui/bookmark_entries.go @@ -56,6 +56,7 @@ func (c *Controller) ShowStarredPage(w http.ResponseWriter, r *http.Request) { view.Set("menu", "starred") view.Set("user", user) view.Set("countUnread", c.store.CountUnreadEntries(user.ID)) + view.Set("hasSaveEntry", c.store.HasSaveEntry(user.ID)) - html.OK(w, view.Render("starred")) + html.OK(w, view.Render("bookmark_entries")) } -- cgit v1.2.3