Skip to content

Commit 16646fb

Browse files
committed
Add confirmation to flush the whole page cache
(cherry picked from commit ba4f133) # Conflicts: # app/views/alchemy/admin/pages/_toolbar.html.erb
1 parent ef12619 commit 16646fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
alchemy.flush_admin_pages_path,
2424
remote: true,
2525
method: :post,
26-
class: "icon_button please_wait",
27-
title: Alchemy.t("Flush page cache")
26+
class: "icon_button",
27+
title: Alchemy.t("Flush page cache"),
28+
"data-turbo-confirm": Alchemy.t(:confirm_to_flush_cache)
2829
) %>
2930
</sl-tooltip>
3031
</div>

config/locales/alchemy.en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ en:
391391
confirm_to_delete_menu: "Do you really want to delete this menu?"
392392
confirm_to_delete_node: "Do you really want to delete this menu node?"
393393
confirm_to_delete_page: "Do you really want to delete this page?"
394+
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."
394395
ingredient_validations_headline: "Please check marked fields below"
395396
copy: "copy"
396397
copy_element: "Copy this element"

0 commit comments

Comments
 (0)