@@ -198,10 +198,6 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
198198 if ( isEmpty ( attribute ) ) {
199199 return null ;
200200 }
201- if ( link . localeAttribute ) {
202- let s = `${ link . locale } .${ attribute } ` ;
203- console . log ( s ) ;
204- }
205201 return (
206202 < a href = { attribute } key = { index } target = "_blank" rel = "noopener noreferrer" >
207203 { link . localeAttribute ? I18n . t ( `${ link . locale } .${ attribute . replace ( / \. / g, '' ) } ` ) : I18n . t ( link . locale ) }
@@ -292,7 +288,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
292288 } ) ;
293289 } else {
294290 cancelConfirmation ( ) ;
295- alert ( "cancel request" )
291+ alert ( "cancel request" ) ;
296292 }
297293 }
298294
@@ -337,7 +333,19 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
337333 } ) ;
338334
339335 }
336+ } ) . catch ( ( ) => {
337+ setLoading ( false ) ;
338+ setConfirmationModalOption ( null ) ;
339+ setConfirmation ( {
340+ open : true ,
341+ cancel : null ,
342+ action : ( ) => cancelConfirmation ( ) ,
343+ title : I18n . t ( "error.title" ) ,
344+ isError : true ,
345+ question : I18n . t ( "error.jiraDown" ) ,
346+ okButton : I18n . t ( "forms.ok" )
340347 } )
348+ } )
341349 }
342350 }
343351
@@ -351,7 +359,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
351359 navigate ( - 1 ) ;
352360 }
353361
354- const { open, cancel, action, question, title, okButton} = confirmation ;
362+ const { open, cancel, isError , action, question, title, okButton} = confirmation ;
355363
356364 const renderCurrentTab = ( ) => {
357365 switch ( currentTab ) {
@@ -605,7 +613,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
605613 const renderQuickLinks = ( ) => {
606614 return (
607615 < >
608- < p className = "info" > { I18n . t ( "applicationDetail.quickLinks" ) } </ p >
616+ < p className = "info no-margin " > { I18n . t ( "applicationDetail.quickLinks" ) } </ p >
609617 < div className = "app-info-block" >
610618 { APPLICATION_LINKS . map ( ( link , index ) =>
611619 externalLink ( link , metaData , index )
@@ -629,7 +637,6 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
629637 { renderAppPrivacy ( ) }
630638 </ div >
631639 < div className = "right" >
632- < p className = "license" > { I18n . t ( `applicationDetail.license.${ metaData [ 'coin:ss:license_status' ] || 'license_not_required' } ` ) } </ p >
633640 { renderQuickLinks ( ) }
634641 < p className = "info" > { I18n . t ( "applicationDetail.contractual" ) } </ p >
635642 < p >
@@ -724,6 +731,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
724731 < div className = { `application-detail-container` } >
725732 { open && < ConfirmationDialog confirm = { action }
726733 cancel = { cancel }
734+ isError = { isError }
727735 confirmationTxt = { okButton }
728736 confirmationHeader = { title }
729737 question = { question } >
0 commit comments