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:
parent
25a5250eb9
commit
5983db1a77
15 changed files with 165 additions and 40 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue