Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save state json #95

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Save state json #95

wants to merge 8 commits into from

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.

1 participant