Merge pull request #6778 from wallabag/add-confirmation-before-reload

Add confirmation before reload entry
This commit is contained in:
Kevin Decherf 2023-08-09 19:40:49 +02:00 committed by GitHub
commit f4fd8e4675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -54,7 +54,7 @@
</li> </li>
<li class="bold"> <li class="bold">
<a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.re_fetch_content'|trans }}" href="{{ path('reload_entry', {'id': entry.id}) }}" id="reload"> <a class="waves-effect collapsible-header" onclick="return confirm('{{ 'entry.confirm.reload'|trans|escape('js') }}')" title="{{ 'entry.view.left_menu.re_fetch_content'|trans }}" href="{{ path('reload_entry', {'id': entry.id}) }}" id="reload">
<i class="material-icons small">refresh</i> <i class="material-icons small">refresh</i>
<span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span> <span>{{ 'entry.view.left_menu.re_fetch_content'|trans }}</span>
</a> </a>

View file

@ -320,6 +320,7 @@ entry:
delete: Are you sure you want to remove that article? delete: Are you sure you want to remove that article?
delete_tag: Are you sure you want to remove that tag from that article? delete_tag: Are you sure you want to remove that tag from that article?
delete_entries: Are you sure you want to remove these articles? delete_entries: Are you sure you want to remove these articles?
reload: Are you sure you want to reload that article?
metadata: metadata:
reading_time: Estimated reading time reading_time: Estimated reading time
reading_time_minutes_short: '%readingTime% min' reading_time_minutes_short: '%readingTime% min'