Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

Save JSON state in local storage #120

Open
harunurhan opened this issue Mar 23, 2017 · 0 comments
Open

Save JSON state in local storage #120

harunurhan opened this issue Mar 23, 2017 · 0 comments

Comments

@harunurhan
Copy link
Collaborator

harunurhan commented Mar 23, 2017

@jmartinm :

In order to recover from accidental close of tab, the state of the json should be saved and automatically recovered when the tab of the editor is reopened.

UPDATE after discussions:

In case of a network problem, by default we should load the changes saved locally using the same UI as the merger (where the user accepts/rejects the changes). This enables us to handle cases like when the record gets extra updates while we are not on the editor.

Blocked by inveniosoftware-contrib/ng2-json-editor#133

harunurhan added a commit to harunurhan/record-editor that referenced this issue Mar 24, 2017
* Fixes inspirehep#120. Saves current version of data before window/tab is
closed by the its url from where it was fetched earlier. And check
before fetching a data if it exists on local stroge. Finally clear the
data if it is save successfully.

* Refactors api.service.
harunurhan added a commit to harunurhan/record-editor that referenced this issue Mar 27, 2017
* Fixes inspirehep#120. Saves current version of data before window/tab is
closed by the its url from where it was fetched earlier. And check
before fetching a data if it exists on local stroge. Finally clear the
data if it is save successfully.

* Refactors api.service.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant