oax icon indicating copy to clipboard operation
oax copied to clipboard

restore last api spec on next visit

Open drejahl opened this issue 6 years ago • 2 comments

This commit contains changes to store the most recent api spec url in localStorage and to restore this api spec on the next visit.

drejahl avatar Apr 08 '18 15:04 drejahl

Hello @drejahl!

  1. How does it work regarding bookmarability? Does is mean same root URL would lead to diferent spec or does it redirect to URL with query? How can user restore original "clean" state?

  2. There is Recent tab in left drawer, and last the URL is on top of RECENT items in vuex store - which is not localStored yet, but it should be preffered way.

darosh avatar Apr 10 '18 10:04 darosh

Hi @drosh, re 1: There is no impact on bookmarkeability. If no url is given as a query parameter in the url it retrieves the saved recent spec from localstorage before defaulting to the one in the configuration file (which is github). re 2: Yes, I agree - it would be desirable to save all recents in the localstorage instead of Vuex store. I am happy to look if this can be done with reasonable effort.

Cheers, Dirk

drejahl avatar Apr 10 '18 16:04 drejahl