File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11import { ProgressBar } from '@/components/ProgressBar' ;
22import { getInstanceClient } from '@/config/getInstanceClient' ;
3+ import { authStore } from '@/features/auth/store/authStore' ;
34import { getClusterInfo } from '@/features/cluster/queries/getClusterInfoQuery' ;
45import { restartInstance } from '@/features/instance/operations/mutations/restartInstance' ;
56import { getInstanceUserInfo } from '@/features/instance/operations/queries/getInstanceUserInfo' ;
@@ -51,11 +52,13 @@ export function useRestartClusterClick({ onRestartedSuccessfully }: RestartClust
5152 } ) ;
5253
5354 const cluster = await getClusterInfo ( clusterId ) ;
55+ const clusterUsesFabricConnect = authStore . checkForFabricConnect ( cluster . id ) ;
5456 const allInstances = cluster ?. instances ?? [ ] ;
5557 const instanceClients = allInstances
5658 . filter ( instance => instance . status === 'RUNNING' )
5759 . map ( instance => getInstanceClient ( {
5860 id : instance . id ,
61+ forceFabricConnect : clusterUsesFabricConnect ,
5962 operationsUrl : getOperationsUrlForInstance ( instance ) ,
6063 } ) )
6164 . reverse ( ) ;
Original file line number Diff line number Diff line change 11import { ProgressBar } from '@/components/ProgressBar' ;
22import { getInstanceClient } from '@/config/getInstanceClient' ;
33import { useInstanceClientIdParams } from '@/config/useInstanceClient' ;
4+ import { authStore } from '@/features/auth/store/authStore' ;
45import { getClusterInfo } from '@/features/cluster/queries/getClusterInfoQuery' ;
56import { restartInstance } from '@/features/instance/operations/mutations/restartInstance' ;
67import { setConfiguration } from '@/features/instance/operations/mutations/setConfiguration' ;
@@ -55,11 +56,13 @@ export function useRollingConfigUpdate({ onRestartedSuccessfully }: RollingConfi
5556 const allInstances = operationsParams . entityType === 'cluster'
5657 ? cluster ?. instances || [ ]
5758 : [ { id : operationsParams . entityId , status : 'RUNNING' } as Instance ] ;
59+ const clusterUsesFabricConnect = ! ! cluster && authStore . checkForFabricConnect ( cluster . id ) ;
5860 const instanceClients = operationsParams . entityType === 'cluster'
5961 ? allInstances
6062 . filter ( instance => instance . status === 'RUNNING' )
6163 . map ( instance => getInstanceClient ( {
6264 id : instance . id ,
65+ forceFabricConnect : clusterUsesFabricConnect ,
6366 operationsUrl : getOperationsUrlForInstance ( instance ) ,
6467 } ) )
6568 . reverse ( )
You can’t perform that action at this time.
0 commit comments