Skip to content

fix(plugin-seo): add loading state to auto-generate buttons#17252

Open
darkspirit2802 wants to merge 1 commit into
payloadcms:mainfrom
darkspirit2802:fix/plugin-seo-loading-state
Open

fix(plugin-seo): add loading state to auto-generate buttons#17252
darkspirit2802 wants to merge 1 commit into
payloadcms:mainfrom
darkspirit2802:fix/plugin-seo-loading-state

Conversation

@darkspirit2802

Copy link
Copy Markdown
Contributor

Summary

Adds a loading state to the SEO plugin's Auto-generate buttons.

Changes

  • Disable the Auto-generate button while the async request is in progress.
  • Show a loading text (Auto-generate...) during generation.
  • Re-enable the button after the request completes or fails.
  • Applied to both:
    • MetaTitleComponent
    • MetaDescriptionComponent

Fixes #17239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugin-seo: Auto-generate button has no loading state when generateTitle/generateURL is async

1 participant