-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
After closing the overwrite modal, reload button no longer works #2793
Comments
I can still reproduce this on master. @unnamedplay-r are you still interested in making a pull request? You can find the code which displays this dialog here: notebook/notebook/static/notebook/js/notebook.js Lines 2761 to 2791 in faa0cab
|
@takluyver, I unfortunately won't be able to tackle this. It's a relatively simple fix that has a solution demonstrated in the editor.js file of my pull request. It might be a nice way to introduce someone to the codebase. |
Thanks. I've marked this 'good first issue', but if no-one new tackles it, one of us can do it before releasing 5.5. |
@unnamedplay-r Is this issue fixed? Can you explain me how to reproduce it.I was not able to reproduce.I might be doing something wrong. Kindly guide me through it |
Can you see how to get the "notebook changed on disk" message to appear? If so, it should be possible to reproduce the problem by clicking 'cancel' on that dialog, then getting it to appear again on the same page, and then clicking reload. |
@takluyver I have tried modifying the notebook from an external editor.However i did not get the modal you specified above. |
@sunilhari Here's some detailed instructions:
This is the unintended behavior. |
Here's the relevant code in Jupyter notebook's editor that solves this issue. notebook/notebook/static/edit/js/editor.js Lines 282 to 290 in ec14450
|
@sunilhari are you still interested in working on this? Can you reproduce the issue yet? I'm aiming to release 5.5 in the next few days. It would be good to get this fixed for the release, but if you want more time to look at it, we can leave it for the next release. |
I was actually confused to read @unamedplay -r comment.Was in the impression that it is fixed. |
There are two very similar dialogs - one for the notebook editor, which has the bug, and one for the text editor, which doesn't. @unnamedplay-r wrote the text editor one, so he's pointing to that as an example - the notebook one needs to do the some thing that the editor one does. |
Hi @takluyver |
A PR had been submitted against the issue.Kindly Review it |
Closed by #3589 - thanks @sunilhari ! |
How to replicate:
Save the notebook, change the notebook in an editor then try to save. The notebook will trigger the modal. Once open, click cancel then save again to open the modal. The 'Reload' button no longer works.
Issue:
The event handler binded to it originally was not binded again after the modal is removed.
I can tackle this, I just wanted to create an issue to reference when I submit a pull request.
The text was updated successfully, but these errors were encountered: