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

fix(site): modify leaveSiteWarning for un-built changes #12548

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented Mar 12, 2024

Spotted in #12547

#12406 added a feature to warn the user if they made changes, but this only triggers if you make changes to the template source code and trigger a successful build. This modifies the behaviour to alert if the user attempts to leave the editor with any pending 'dirty' changes.

@johnstcn johnstcn self-assigned this Mar 12, 2024
@johnstcn johnstcn changed the title fix(site): warn when user leaves template editor with un-built changes fix(site): modify leaveSiteWarning for un-built changes Mar 12, 2024
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

@matifali if this behavior is ok, I'm good with that 👍

@johnstcn johnstcn merged commit 7b081c8 into main Mar 12, 2024
31 checks passed
@johnstcn johnstcn deleted the cj/template-editor-warn-on-just-dirty branch March 12, 2024 13:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants