@@ -50,22 +50,30 @@ export default class MakeDecisionDropdown extends Component<Args> {
5050 } ;
5151
5252 get commentTextArea ( ) {
53- if ( [ RegistrationReviewStates . Pending , RegistrationReviewStates . PendingWithdraw ]
54- . includes ( this . args . registration . reviewsState ) ) {
53+ if ( this . args . registration . reviewsState ) {
54+ if ( [ RegistrationReviewStates . Pending , RegistrationReviewStates . PendingWithdraw ]
55+ . includes ( this . args . registration . reviewsState ) ) {
56+ return {
57+ label : this . intl . t ( 'registries.makeDecisionDropdown.additionalComment' ) ,
58+ placeholder : this . intl . t ( 'registries.makeDecisionDropdown.additionalCommentPlaceholder' ) ,
59+ } ;
60+ }
61+
5562 return {
56- label : this . intl . t ( 'registries.makeDecisionDropdown.additionalComment ' ) ,
57- placeholder : this . intl . t ( 'registries.makeDecisionDropdown.additionalCommentPlaceholder ' ) ,
63+ label : this . intl . t ( 'registries.makeDecisionDropdown.justificationForWithdrawal ' ) ,
64+ placeholder : this . intl . t ( 'registries.makeDecisionDropdown.justificationForWithdrawalPlaceholder ' ) ,
5865 } ;
5966 }
60-
67+ // registration is viewed anonymously and this component should not be visible
6168 return {
62- label : this . intl . t ( 'registries.makeDecisionDropdown.justificationForWithdrawal' ) ,
63- placeholder : this . intl . t ( 'registries.makeDecisionDropdown.justificationForWithdrawalPlaceholder' ) ,
69+ label : '' ,
70+ placeholder : '' ,
6471 } ;
6572 }
6673
6774 get hasModeratorActions ( ) {
68- return ! [
75+ return this . args . registration . reviewsState
76+ && ! [
6977 RegistrationReviewStates . Initial ,
7078 RegistrationReviewStates . Withdrawn ,
7179 RegistrationReviewStates . Rejected ,
0 commit comments