1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-21 18:11:09 +00:00

Ask for confirmation before flushing history

This commit is contained in:
Frédéric Guillot 2019-07-17 21:29:00 -07:00
parent 99149d9f2a
commit ac3693562b
4 changed files with 19 additions and 8 deletions

View file

@ -6,7 +6,13 @@
{{ if .entries }}
<ul>
<li>
<a href="{{ route "flushHistory" }}">{{ t "menu.flush_history" }}</a>
<a href="#"
data-confirm="true"
data-url="{{ route "flushHistory" }}"
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.flush_history" }}</a>
</li>
</ul>
{{ end }}