Closed fnitu closed 3 years ago
The save action should be done on clicking "Add resource" button: /api/admin/courses/sections/contents/{contentId}/resources
It will be updated to also contain a index property.
The Save button from the dialog should be removed, the "Cancel" button should be replaced with "Close". The result of the operation should be the newly added id.
The newly added resource will be added to the bottom of the list (after a successful save operation) and automatically scrolled to.
Drag and drop will be added in another ticket to re-order the resources.
For the presentation:
Nice to have:
Please add ellipsis to long URLs and title attribute.
Please integrate the DELETE operation (without confirmation) from: /api/admin/courses/sections/contents/resources/{resourceId}/delete
Issue implemented.
Add dialog for resource creation according to the design: https://www.figma.com/file/71GwXVMHtoBkXwFwMSaSVj/Admin-Adaugare-curs?node-id=0%3A1
Also, please add a button with badge.