-
Notifications
You must be signed in to change notification settings - Fork 0
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
Delete commissioning packages #53
Conversation
Fin og ryddig kode! Ser ut som slettingen nesten er i mål. Kan ta utgangspunkt i funksjonen cleanTripleStore i Triplestore.ts for sletting i db. Ellers er det lurt som du skriver å flytte slettingen ut i en egen komponent. Et par designtanker rundt slettingen:
Veldig bra jobbet! 🎄 |
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) ✅ code/snyk check is complete. No issues have been found. (View Details) |
Takk, nå har jeg fikset at pakkene slettes i triplestoren og flyttet dialogen ut i en egen komponent! Synes begge designtankene dine var gode, så har lagt til farge på pakkene i listen over pakker for sletting, og gjort sånn at den aktive pakken automatisk er sjekket av! 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Det funker fint på firefox på linux. Jeg har ikke noen gode innspill her, er ikke god nok i react til å fange opp om noe er feil tror jeg.
Pull requests practices for the SSI team
Aim of the PR
This PR fixes AB#208957.
The goal of this PR is to add functionality for deleting commissioning packages.
Implementation
I added a new sidebar item with a delete icon. When the user clicks the button, a dialog opens. The dialog shows all commissioning packages, and the user must choose which packages they want to delete. The active package will be automatically checked, as it is likely the user wants to delete the package that is currently active. When you delete the last commissioning package, a new initial commissioning package will be created.
Type of change
How Has This Been Tested?
This has been tested by running the demo and seeing that it is possible to delete commissioning packages. See screenshots: