Option to replace the system "Save" button with the "Save and Clear Cloudflare Cache" button

Created on 18 December 2024, about 20 hours ago

Problem/Motivation

Content editors may find it confusing to see the "Save and Clear Cloudflare Cache" button, if they are not aware of "Cloudflare" or "caching". Maybe this could be addressed by documentation and training, but I wonder if the maintainers are interested having a config option "Replace default save button with Clear Cloudflare Cache button", which, if enabled, will replace the save button and style the cloudflare_node_cc button as with the default text, .

I think this feature can reduce stress of content editors without altering the interface or slowing down the site.

This feature should be off by default so site builders will not be surprised about the missing button.

Steps to reproduce

  1. Edit a node.
  2. Locate the Save button.
  3. See a primary Save, and a secondary "Save and clear cloudflare cache".

Proposed resolution

  1. Add a config item "Replace default save button with cloudflare node cache clear button"
  2. If this config item exists and set to true, then Remove the default submit button, change the style to primary, and change the text to translated "Save".
  3. Else, output the cloudflare node cache clear button alongside the save button (no change).

Remaining tasks

Implement the change.

User interface changes

Disappearance of the cloudflare node cache clear button if the feature is turned on by the admin.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

1.0

Component

User interface

Created by

🇯🇵Japan hktang

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024