Skip to content

Commit

Permalink
#1660 fixed issue with removable case
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Dec 6, 2024
1 parent 05100d8 commit cd81c1a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function getConfig()
'confirmActivateMessage' => __('manager.reviewerRecommendations.confirmActivate'),
'deactivateTitle' => __('manager.reviewerRecommendations.deactivate.title'),
'confirmDeactivateMessage' => __('manager.reviewerRecommendations.confirmDeactivate'),
'recommendationNameTitle' => __('manager.reviewerRecommendations.list.name.title'),
'recommendationStatusTitle' => __('manager.reviewerRecommendations.list.status.title'),
'apiUrl' => $this->getReviewerRecommendationsApiUrl(),
'form' => $this->getLocalizedForm(),
'items' => $this->items,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function value(): Attribute
protected function removable(): Attribute
{
return Attribute::make(
get: fn () => Repo::reviewAssignment()
get: fn () => !Repo::reviewAssignment()
->getCollector()
->filterByRecommenddations([$this->value])
->getQueryBuilder()
Expand Down
6 changes: 6 additions & 0 deletions locale/en/manager.po
Original file line number Diff line number Diff line change
Expand Up @@ -1999,6 +1999,12 @@ msgstr "Are you sure you want to deactivate the recommendation {$title}"
msgid "manager.reviewerRecommendations.deactivate.title"
msgstr "Deactivate Reviewer Recommendation"

msgid "manager.reviewerRecommendations.list.name.title"
msgstr "Recommendations"

msgid "manager.reviewerRecommendations.list.status.title"
msgstr "Activate"

msgid "manager.reviewForms"
msgstr "Review Forms"

Expand Down

0 comments on commit cd81c1a

Please sign in to comment.