diff options
author | 2018-08-28 23:44:34 -0400 | |
---|---|---|
committer | 2018-08-28 20:44:34 -0700 | |
commit | 5341bbcbe27fd8a9e73f4eeb18319daf5421dcb4 (patch) | |
tree | 3e905f97ac2c4d086f990d674072e916d74fc081 /ui/entry_category.go | |
parent | 4f62a704e2cb77e2c9d99c6f9fa45f3485cf0af7 (diff) |
Add toggle status button to entry page
Diffstat (limited to 'ui/entry_category.go')
-rw-r--r-- | ui/entry_category.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/entry_category.go b/ui/entry_category.go index 3539345..41b729f 100644 --- a/ui/entry_category.go +++ b/ui/entry_category.go @@ -63,6 +63,8 @@ func (c *Controller) ShowCategoryEntry(w http.ResponseWriter, r *http.Request) { html.ServerError(w, nil) return } + + entry.Status = model.EntryStatusRead } entryPaginationBuilder := storage.NewEntryPaginationBuilder(c.store, user.ID, entry.ID, user.EntryDirection) |