unfoldingWord / gateway-translate

A tool for editing and translating text in USFM markup
MIT License
2 stars 3 forks source link

Feature cn 107 prevent data loss #132

Closed mandolyte closed 1 year ago

mandolyte commented 1 year ago

Describe what your pull request addresses

This is integration work to use an unsaved data callback now available in the uw-editor component.

Test Instructions

NOTE: that if the book is re-opened, the data is there with the changes intact. However, the save button is not enabled. This is a bug? Workaround is to click the undo (which is enabled) and then redo. Then click save.

netlify[bot] commented 1 year ago

Deploy Preview for gateway-translate ready!

Name Link
Latest commit 3712497b03e3fa378c49760e41042c64868eac5d
Latest deploy log https://app.netlify.com/sites/gateway-translate/deploys/63e248ee37cb7f000967ce13
Deploy Preview https://deploy-preview-132--gateway-translate.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

mandolyte commented 1 year ago

The updates address the tab closing, but closing the entire browser seems to work differently. I updated the test instructions. Let me know what you think.

I got the Nextjs example and pretty much pasted it into /pages/_app.js. I commented out the parts I did not think we needed, but left them there since the other conditions handled might prove useful.