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:
parent
99149d9f2a
commit
ac3693562b
4 changed files with 19 additions and 8 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue