Skip to content

Prompt before loading tutorial example code #189

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

Merged
merged 1 commit into from
Sep 23, 2018

Conversation

adamcarheden
Copy link

@MarkusBordihn

The tutorial has a feature that can load code each time a step is selected. The SVG triangle example (Advanced\Programming\Javascript\SVG) demonstrates this feature.

That feature previously overwrite the user's changes to the editor when a new step was loaded. This PR fixes that by only loading code if the editor is empty or matches the previous step's code. It also provides a button for the user to load the code and warns users that it will overwrite their code.

@MarkusBordihn MarkusBordihn merged commit 1f850fa into google:master Sep 23, 2018
@adamcarheden adamcarheden deleted the no-dirty-editor-overwrite branch June 17, 2019 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants