Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Export/ import categories #79

Open
2 tasks
lislis opened this issue May 4, 2022 · 0 comments
Open
2 tasks

Export/ import categories #79

lislis opened this issue May 4, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@lislis
Copy link
Member

lislis commented May 4, 2022

The buttons already exist as placeholders in the frontend.

  • export
    Basically merge the contents of localstorage categories and category_items into one object, write it into a buffer and start a download as json.

  • import (needs a fileupload)
    Read the file as json and separate the categories from category_items and save them to the database.
    It probably makes sense to delete all previous entries here and just import into a clean table so we don't have to deal with duplicates? there could be a warning saying "Hey, importing will remove everything that you currently have"

@lislis lislis added the enhancement New feature or request label May 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant