diff --git a/src/Services/Parts/PartsTableActionHandler.php b/src/Services/Parts/PartsTableActionHandler.php index 5fde6992..30251d23 100644 --- a/src/Services/Parts/PartsTableActionHandler.php +++ b/src/Services/Parts/PartsTableActionHandler.php @@ -83,6 +83,14 @@ final class PartsTableActionHandler $this->denyAccessUnlessGranted('change_favorite', $part); $part->setFavorite(false); break; + case 'set_needs_review': + $this->denyAccessUnlessGranted('edit', $part); + $part->setNeedsReview(true); + break; + case 'unset_needs_review': + $this->denyAccessUnlessGranted('edit', $part); + $part->setNeedsReview(false); + break; case 'delete': $this->denyAccessUnlessGranted('delete', $part); $this->entityManager->remove($part); diff --git a/templates/components/datatables.macro.html.twig b/templates/components/datatables.macro.html.twig index f08bdf27..ccf3ba95 100644 --- a/templates/components/datatables.macro.html.twig +++ b/templates/components/datatables.macro.html.twig @@ -38,7 +38,10 @@ - + + + + diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index a3eba135..6ed05329 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -9887,5 +9887,23 @@ Element 3 Data + + + part_list.action.action.group.needs_review + Needs Review + + + + + part_list.action.action.set_needs_review + Set Needs Review Status + + + + + part_list.action.action.unset_needs_review + Unset Needs Review Status + +