Skip to content

Conversation

@skhilton
Copy link
Collaborator

@skhilton skhilton commented Feb 5, 2020

This PR allows the user to import or export the state of the app.

The export function creates a JSON file of the current dropdown menu values and selected sites. This is downloaded to a filename given by the user.

The import function reads in a filename from the user. It does some preliminary checks (does the file exist/is a JSON?), reads in the JSON, does some checks on the content of the JSON and then updates the dropdown menus and the selected sites.

In the future, the state JSON can also include the links to the data for the users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants