Codelabz
Codelabz copied to clipboard
Move to trash functionality fixed
Description
Made necessary changes ensuring that both functionalities now work correctly. Specifically, users cannot delete a tutorial before unpublishing it. After unpublishing, the "Move to Trash" button becomes enabled, and upon clicking it, the tutorial is successfully deleted from the database. Additionally, I removed the extra finish modal as per the feedback.
Related Issue
Solved #935
Motivation and Context
The changes were made to enhance the user experience and ensure that the deletion process follows the expected workflow. By implementing the suggested modifications, the application now aligns with user expectations and provides a smoother interaction.
Screenshots or GIF (In case of UI changes):
https://github.com/scorelab/Codelabz/assets/90304648/a31c083f-69f4-4617-8036-3e8c253277fc
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.