thesephist / zone

A URL shortener / note sharing service.
https://linus.zone
MIT License
25 stars 12 forks source link

If the user puts in an id of an existing note/uri, then populate thos… #3

Closed blackary closed 5 years ago

blackary commented 5 years ago

…e inputs with the existing content.

Relies on new /:id/content/ endpoint, which returns json which includes the content and type of the record. If the user has already typed in either of the fields, they are prompted (using the ugly standard confirm popup) as to whether they would like to replace their work with the existing content

thesephist commented 5 years ago

Looks good and merged 👍 thanks for the PR @blackary.

I think at some point I might want to consolidate the /locked and /content endpoints into one so we only make one request instead of two every time, but for now it seems like a non-issue. This should be live at linus.zone :)