@@ -57,7 +57,7 @@ export const UserPublisherAgreement: FunctionComponent<UserPublisherAgreementPro
5757 } ;
5858
5959 const openPublisherAgreement = ( ) => {
60- if ( ! pageSettings || ! pageSettings . urls . publisherAgreement ) {
60+ if ( ! pageSettings . urls . publisherAgreement ) {
6161 handleError ( { error : 'Publisher agreement text is not available.' } ) ;
6262 } else {
6363 setDialogOpen ( true ) ;
@@ -99,31 +99,31 @@ export const UserPublisherAgreement: FunctionComponent<UserPublisherAgreementPro
9999 }
100100 </ Typography >
101101 :
102- ! user . additionalLogins || ! user . additionalLogins . find ( login => login . provider === 'eclipse' ) ?
102+ user . additionalLogins ? .find ( login => login . provider === 'eclipse' ) ?
103103 < >
104104 < Typography variant = 'body1' >
105105 You need to sign the Eclipse Foundation Open VSX Publisher Agreement before you can publish
106- any extension to this registry. To start the signing process, please log in with
107- an Eclipse Foundation account.
106+ any extension to this registry.
108107 </ Typography >
109108 < Box mt = { 2 } display = 'flex' justifyContent = 'flex-end' >
110- < Link href = { createAbsoluteURL ( [ service . serverUrl , 'oauth2' , 'authorization' , 'eclipse' ] ) } >
111- < Button variant = 'outlined' color = 'secondary' >
112- Log in with Eclipse
113- </ Button >
114- </ Link >
109+ < Button onClick = { openPublisherAgreement } variant = 'outlined' color = 'secondary' >
110+ Show Publisher Agreement
111+ </ Button >
115112 </ Box >
116113 </ >
117114 :
118115 < >
119116 < Typography variant = 'body1' >
120117 You need to sign the Eclipse Foundation Open VSX Publisher Agreement before you can publish
121- any extension to this registry.
118+ any extension to this registry. To start the signing process, please log in with
119+ an Eclipse Foundation account.
122120 </ Typography >
123121 < Box mt = { 2 } display = 'flex' justifyContent = 'flex-end' >
124- < Button onClick = { openPublisherAgreement } variant = 'outlined' color = 'secondary' >
125- Show Publisher Agreement
126- </ Button >
122+ < Link href = { createAbsoluteURL ( [ service . serverUrl , 'oauth2' , 'authorization' , 'eclipse' ] ) } >
123+ < Button variant = 'outlined' color = 'secondary' >
124+ Log in with Eclipse
125+ </ Button >
126+ </ Link >
127127 </ Box >
128128 </ > }
129129 </ Paper >
0 commit comments