Skip to content

fix(next): show distinct restore message based on entity type #13214

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akhrarovsaid
Copy link
Contributor

What?

This PR fixes an issue where the restore global confirmation message was shown even for collection entities. There's an existing restore confirmation message for non-globals available to use, so this PR checks whether the incoming entity is a collection or global and shows the appropriate message instead.

Why?

To show a confirmation message that reflects the current entity being restored.

How?

By checking for existence of a globalConfig passed to the Restore component and using this to determine which message to show.

Before:
Version-Post-Payload-before

After:
Version-Post-Payload-after

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.

1 participant