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