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/history_entries.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui/history_entries.go') diff --git a/ui/history_entries.go b/ui/history_entries.go index e695ce3..9945500 100644 --- a/ui/history_entries.go +++ b/ui/history_entries.go @@ -54,6 +54,7 @@ func (c *Controller) ShowHistoryPage(w http.ResponseWriter, r *http.Request) { view.Set("menu", "history") 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("history")) + html.OK(w, view.Render("history_entries")) } -- cgit v1.2.3