diff --git a/src/app/shared/components/make-decision-dialog/make-decision-dialog.component.html b/src/app/shared/components/make-decision-dialog/make-decision-dialog.component.html
index 798c7dcec..f29234a67 100644
--- a/src/app/shared/components/make-decision-dialog/make-decision-dialog.component.html
+++ b/src/app/shared/components/make-decision-dialog/make-decision-dialog.component.html
@@ -31,7 +31,7 @@
}
- @if (isPreModeration() || (isHybridModeration() && isPendingStatus())) {
+ @if (isRejectOptionVisible()) {
}
- @if ((isHybridModeration() && !isPendingStatus()) || isPostModeration()) {
+ @if (isWithdrawOptionVisible()) {
{
- return this.currentReviewAction()?.toState === SubmissionReviewStatus.Pending;
- });
+ isPendingStatus = computed(() => this.currentReviewAction()?.toState === SubmissionReviewStatus.Pending);
+ isAcceptedStatus = computed(() => this.currentReviewAction()?.toState === SubmissionReviewStatus.Accepted);
+
+ isRejectOptionVisible = computed(
+ () => (this.isPreModeration() && this.isPendingStatus()) || (this.isHybridModeration() && this.isPendingStatus())
+ );
+
+ isWithdrawOptionVisible = computed(
+ () =>
+ (this.isPreModeration() && this.isAcceptedStatus()) ||
+ (this.isHybridModeration() && !this.isPendingStatus()) ||
+ this.isPostModeration()
+ );
ngOnInit() {
this.initForm();