@@ -40,11 +40,14 @@ function useInterval(callback, delay, state) {
40
40
} , [ delay , state ] )
41
41
}
42
42
43
- const RelationshipOnboarding = ( { relationship, gdapRoles, autoMapRoles, addMissingGroups } ) => {
44
- const [ relationshipReady , setRelationshipReady ] = useState ( false )
45
- const [ refreshGuid , setRefreshGuid ] = useState ( false )
43
+ const RelationshipOnboarding = ( {
44
+ relationship,
45
+ gdapRoles,
46
+ autoMapRoles,
47
+ addMissingGroups,
48
+ standardsExcludeAllTenants,
49
+ } ) => {
46
50
const [ getOnboardingStatus , onboardingStatus ] = useLazyGenericPostRequestQuery ( )
47
- var headerIcon = relationshipReady ? 'check-circle' : 'question-circle'
48
51
49
52
useInterval (
50
53
async ( ) => {
@@ -58,6 +61,7 @@ const RelationshipOnboarding = ({ relationship, gdapRoles, autoMapRoles, addMiss
58
61
5000 ,
59
62
onboardingStatus . data ,
60
63
)
64
+ console . log ( standardsExcludeAllTenants )
61
65
62
66
return (
63
67
< CAccordionItem >
@@ -125,7 +129,13 @@ const RelationshipOnboarding = ({ relationship, gdapRoles, autoMapRoles, addMiss
125
129
{ onboardingStatus . isUninitialized &&
126
130
getOnboardingStatus ( {
127
131
path : '/api/ExecOnboardTenant' ,
128
- values : { id : relationship . id , gdapRoles, autoMapRoles, addMissingGroups } ,
132
+ values : {
133
+ id : relationship . id ,
134
+ gdapRoles,
135
+ autoMapRoles,
136
+ addMissingGroups,
137
+ standardsExcludeAllTenants,
138
+ } ,
129
139
} ) }
130
140
{ onboardingStatus . isSuccess && (
131
141
< >
@@ -134,7 +144,13 @@ const RelationshipOnboarding = ({ relationship, gdapRoles, autoMapRoles, addMiss
134
144
onClick = { ( ) =>
135
145
getOnboardingStatus ( {
136
146
path : '/api/ExecOnboardTenant?Retry=True' ,
137
- values : { id : relationship . id , gdapRoles, autoMapRoles, addMissingGroups } ,
147
+ values : {
148
+ id : relationship . id ,
149
+ gdapRoles,
150
+ autoMapRoles,
151
+ addMissingGroups,
152
+ standardsExcludeAllTenants,
153
+ } ,
138
154
} )
139
155
}
140
156
className = "mb-3 me-2"
@@ -190,6 +206,7 @@ RelationshipOnboarding.propTypes = {
190
206
autoMapRoles : PropTypes . bool ,
191
207
addMissingGroups : PropTypes . bool ,
192
208
statusOnly : PropTypes . bool ,
209
+ standardsExcludeAllTenants : PropTypes . bool ,
193
210
}
194
211
195
212
export default RelationshipOnboarding
0 commit comments