1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

Ask for confirmation before removing something

This commit is contained in:
Frédéric Guillot 2017-11-21 14:44:47 -08:00
parent 25a5250eb9
commit 5983db1a77
15 changed files with 165 additions and 40 deletions

View file

@ -16,7 +16,7 @@
</ul>
</section>
<table class="table-overflow">
<table>
<tr>
<th>{{ t "Date" }}</th>
<th>{{ t "IP Address" }}</th>
@ -32,7 +32,13 @@
{{ if eq .Token $.currentSessionToken }}
{{ t "Current session" }}
{{ else }}
<a href="{{ route "removeSession" "sessionID" .ID }}">{{ t "Remove" }}</a>
<a href="#"
data-confirm="true"
data-label-question="{{ t "Are you sure?" }}"
data-label-yes="{{ t "yes" }}"
data-label-no="{{ t "no" }}"
data-label-loading="{{ t "Work in progress..." }}"
data-url="{{ route "removeSession" "sessionID" .ID }}">{{ t "Remove" }}</a>
{{ end }}
</td>
</tr>