@@ -2,7 +2,8 @@ import "./ApplicationDetail.scss";
22import "../styles/access_card.scss" ;
33import React , { useEffect , useState } from "react" ;
44import {
5- cancelServiceProviderConnectionRequest , cancelServiceProviderDisconnectionRequest ,
5+ cancelServiceProviderConnectionRequest ,
6+ cancelServiceProviderDisconnectionRequest ,
67 connectServiceProviderToIdentityProvider ,
78 disconnectServiceProviderToIdentityProvider ,
89 getPolicyByServiceProviderEntityId ,
@@ -467,10 +468,10 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
467468 message = { I18n . t ( "appAccess.requestedAccessNotification" ) } />
468469 }
469470 { pendingDisconnect && < Alert alertType = { AlertType . Warning }
470- asChild = { true }
471- children = { < a href = "/" onClick = { e => cancelDisconnectionRequest ( true , e ) } >
472- { I18n . t ( "appAccess.cancelRequest" ) } </ a > }
473- message = { I18n . t ( "appAccess.requestedDisconnectNotification" ) } />
471+ asChild = { true }
472+ children = { < a href = "/" onClick = { e => cancelDisconnectionRequest ( true , e ) } >
473+ { I18n . t ( "appAccess.cancelRequest" ) } </ a > }
474+ message = { I18n . t ( "appAccess.requestedDisconnectNotification" ) } />
474475 }
475476 < div className = { `app-access ${ readOnly ? "read-only" : "" } ` } onClick = { e => readOnly && stopEvent ( e ) } >
476477 { showPolicyDetails &&
@@ -495,7 +496,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
495496 < InfoBlock className = "no-gap" >
496497 < div className = "grouped" >
497498 < div >
498- < h3 > { I18n . t ( "appAccess.users" , { name : providerOrganizationName ( I18n . locale , serviceProvider ) } ) } </ h3 >
499+ < h3 > { I18n . t ( "appAccess.users" , { name : currentOrganization . name } ) } </ h3 >
499500 < p > { I18n . t ( "appAccess.config" ) } </ p >
500501 </ div >
501502 < Button type = { ButtonType . Primary }
@@ -507,7 +508,7 @@ const ApplicationDetail = ({anonymous, refreshUser}) => {
507508 </ div >
508509 < div className = "access-card large" >
509510 < h4 > { I18n . t ( `appAccess.${ isEmpty ( policies ) ? "everyBody" : "notEveryBody" } ` ,
510- { name : providerOrganizationName ( I18n . locale , serviceProvider ) } ) } </ h4 >
511+ { name : currentOrganization . name } ) } </ h4 >
511512 { ! isEmpty ( policies ) &&
512513 < Chip type = { ChipType . Status_info }
513514 label = { I18n . t ( "appAccess.policies" , { nbr : policies . length } ) }
0 commit comments