DumbPad
DumbPad copied to clipboard
(Bug) Deleting Notepad while remote client is connected
Describe the bug Deleting Notepad while remote client is connected. remote client will save but with the notepadid as the name.
To Reproduce Steps to reproduce the behavior:
- open dumbpad with localhost and another client (incognito or proxy)
- with both open on the same notepad delete the notepad on one client
- remote client still has the notepad open but will show the default notepad in the selector
- if remote client saves, the notepad is readded/saved with the notepad id as the name
Expected behavior
- probably should show a message that the notepad was deleted on the remote client and cycle to the next notepad or ask to refresh the page.
- or resave with the notepad name somehow
- not too sure what should happen here but i think keeping the notepad still saved might be a good feature to have in case the remote client disagrees on deleting it
Screenshots
Desktop (please complete the following information):
- OS: any
- Browser: chromium
Maybe a "Remote User deleted this notepad: Confirm?"
Then a simple Delete/Cancel option.
If Delete is selected, delete it and flip to the next notepad available. If Cancelled, keep it?
@abiteman fix: https://github.com/DumbWareio/DumbPad/pull/58