Migrate the confirmation-modal component from CoffeeScript and Angular.js to TypeScript and Angular. The component is used at unit-tutorials-list component. It creates a confirmation dialog when users decide to delete a unit task. The action can be performed under aconvenor and aadmin account privileges.
How Has This Been Tested?
First, log in as aconvenor or aadmin acount.
Under the Administration section, select Units.
After choosing a specific unit name, select the Tasks tab.
In that, there is a list of unit tasks. Click on the red delete icon, it displays the confirmation dialog. Users can perform delete actions and receive alert messages on the top right hand side.
Before:
After:
Successful delete a unit task:
Error handling:
Testing Checklist:
[x] Tested in latest Chrome
[x] Tested in latest Safari
[x] Tested in latest Firefox
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
Description
Migrate the confirmation-modal component from CoffeeScript and Angular.js to TypeScript and Angular. The component is used at unit-tutorials-list component. It creates a confirmation dialog when users decide to delete a unit task. The action can be performed under aconvenor and aadmin account privileges.
How Has This Been Tested?
Before:
After:
Testing Checklist:
Checklist: