Closed agopu closed 4 years ago
The delete functionality is mostly in place. I'm a little unclear about the desired behavior for "Delete all series". Should the tab for that template exam also be removed? Currently all series will be deleted, but that is all.
Yes, the tab should also be removed, as calling that api route will delete the template exam in addition to all the template series.
Since the template summary is received from a parent you could implement this by emitting a delete event from the child and having the parent update it's dataset (either by refreshing the listing, or removing that entry individually).
Alternately within the child element you could have an array of "deleted" ids, and have the tabs be a computed property which includes all template exams whose id is not in the deleted array.
Thanks for the clarification. The tab is now removed after deleting the template exam via the api.
What's the status of this @charlesbrandt ? Has the delete all/selected action been tested? Are there any remaining TODO items for the Vue transition?