Corpus Management - Corpus table - Wire up delete icon in row
Designs
Implement the designs from the MVC (https://www.figma.com/file/eSIeuIPKFwEDs4X9ky2O5E/Corpus-Registry?node-id=156%3A0) which was previously designed as part of this design issue
Implementation Plan
- Swap out client delete resolver mutation for a real graphQL mutation.
- Actual mutation is TBD. Waiting on backend issue to be defined.
- Hide delete icon if user is Reporter level or below.
- Pass user
can?
permission level from HAML template down to Vue component to show/hide delete icon - Unit tests
Estimation
Originally was a 2, but we need to add some additional logic checks and pass from backend the user permission level. We need to hide the new corpus and delete actions if they are under a Reporter level contributor.
Edited by -