Skip to content

Commit 9c388cc

Browse files
committed
resolve comment
1 parent ba59530 commit 9c388cc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/dotnet/APIView/ClientSPA/src/app/_components/review-page-options/review-page-options.component.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,14 +421,12 @@ export class ReviewPageOptionsComponent implements OnInit, OnChanges {
421421
}
422422

423423
setNamespaceReviewStates() {
424-
// Only show namespace review request for TypeSpec language AND if feature is enabled
425-
// AND there are associated API revisions (SDK language reviews) AND namespace is not already approved
424+
// Show namespace review section for TypeSpec language when feature is enabled
425+
// and there are associated API revisions (SDK language reviews)
426+
// Display different states: approved, requested, or available to request
426427
this.canRequestNamespaceReview = this.review?.language === 'TypeSpec' &&
427428
this.namespaceReviewEnabled &&
428-
!this.review?.isApproved &&
429-
this.review?.namespaceReviewStatus !== 'approved' &&
430429
this.pullRequestsOfAssociatedAPIRevisions.length > 0;
431-
console.log("Namespace review request can be made:", this.namespaceReviewEnabled);
432430
// Always keep the button available for requesting namespace review
433431
this.isNamespaceReviewRequested = false;
434432

0 commit comments

Comments
 (0)