1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Ask for confirmation before clicking on mark all as read

This commit is contained in:
Frédéric Guillot 2019-07-17 21:52:45 -07:00
parent ac3693562b
commit a634839678
19 changed files with 39 additions and 66 deletions

View file

@ -14,9 +14,14 @@
data-label-loading="{{ t "confirm.loading" }}">{{ t "menu.mark_page_as_read" }}</a>
</li>
<li>
<a data-link-state="flip"
data-label-new-state="{{ t "menu.mark_all_as_read_wip" }}"
href="{{ route "markAllAsRead" }}">{{ t "menu.mark_all_as_read" }}</a>
<a href="#"
data-confirm="true"
data-url="{{ route "markAllAsRead" }}"
data-redirect-url="{{ route "unread" }}"
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
data-label-loading="{{ t "confirm.loading" }}">{{ t "menu.mark_all_as_read" }}</a>
</li>
</ul>
{{ end }}