Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide moderation controls when present on confirmation form page #273

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

andybroomfield
Copy link
Contributor

@andybroomfield andybroomfield commented Jul 31, 2023

Fix #236

Adds a preprocess implementation to the alert banner to hide the moderation controls if they have been displayed when on the confirmation page (status form).

Note: This only hides on the confirmation form page eg.
/admin/content/alert-banner/18/status

If the form is included in another way it will still be present.

This way, moderation controls can be placed on an alert banner manage display if a site builder considers that desirable, without interfering with the confirmation form to put an alert banner live.

Fix #236

Adds a preprocess implementation to the alert banner to hide the moderation
controls if they have been displayed when on the confirmation page
(status form).

Note: This only hides on the confirmation form page eg.
/admin/content/alert-banner/18/status

If the form is included in another way it will still be present.

This way, moderation controls can be placed on an alert banner manage display
if a site builder considers that desirable, without interfering with the
confirmation form to put an alert banner live.
@andybroomfield
Copy link
Contributor Author

Test by adding a moderation control to the manage display and verify they are not present on the confirmation page, but can still be present under view.

Copy link
Member

@stephen-cox stephen-cox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Removes the moderation control from alert banner previews on the set live form.

@andybroomfield
Copy link
Contributor Author

Thanks @stephen-cox Sorry I missed out on merge monday but I'll merge this now.

@andybroomfield andybroomfield merged commit f0ef42d into 1.x Aug 16, 2023
7 of 8 checks passed
@andybroomfield andybroomfield deleted the fix/1.x-236-hide-confirmation-form branch August 16, 2023 08:47
@andybroomfield andybroomfield mentioned this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content moderation form on manage display breaks the confirmation page
2 participants