Skip to content

Commit

Permalink
Add 'mark this page as read' button to bottom of feed
Browse files Browse the repository at this point in the history
  • Loading branch information
parksb committed May 29, 2024
1 parent fed35a6 commit 535099a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/Items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ function Items(props: Props) {
<Show when={(offset() + 1) * LIMIT < count()}>
<button onClick={() => loadPage(offset() + 1)}>{offset() + 2}</button>
</Show>
<Show when={items().length && items().some(x => x.status == api.ItemStatus.UNREAD)}>
<button onClick={() => markAs(items(), api.ItemStatus.READ)}>
Mark this page as read</button>
</Show>
</div>
</Show>
</div>
Expand Down

0 comments on commit 535099a

Please sign in to comment.