Skip to content

Commit dfe2a5a

Browse files
committed
Add confirmation to flush the whole page cache
(cherry picked from commit ba4f133)
1 parent bd319c9 commit dfe2a5a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/views/alchemy/admin/pages/_toolbar.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<%= button_to(
2222
render_icon(:eraser),
2323
alchemy.flush_admin_pages_path,
24-
"turbo-method": :post,
25-
class: "icon_button please_wait"
24+
"data-turbo-confirm": Alchemy.t(:confirm_to_flush_cache),
25+
class: "icon_button"
2626
) %>
2727
</sl-tooltip>
2828
</div>

config/locales/alchemy.en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ en:
399399
confirm_to_delete_menu: "Do you really want to delete this menu?"
400400
confirm_to_delete_node: "Do you really want to delete this menu node?"
401401
confirm_to_delete_page: "Do you really want to delete this page?"
402+
confirm_to_flush_cache: "Do you really want to flush the page cache? This will might take a while and can make first page requests slow."
402403
ingredient_validations_headline: "Please check marked fields below"
403404
copy: "copy"
404405
copy_element: "Copy this element"

0 commit comments

Comments
 (0)