File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
src/Pages/GlobalConfigurations/ClustersAndEnvironments Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1515,6 +1515,7 @@ const ClusterForm = ({
1515
1515
clusterId = { String ( id ) }
1516
1516
clusterName = { clusterName }
1517
1517
handleClose = { hideConfirmationModal }
1518
+ handleSuccess = { hideEditModal }
1518
1519
reload = { reload }
1519
1520
installationId = { String ( installationId ) }
1520
1521
/>
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const DeleteClusterConfirmationModal = ({
23
23
handleClose,
24
24
installationId,
25
25
reload,
26
+ handleSuccess,
26
27
} : DeleteClusterConfirmationModalProps ) => {
27
28
const isClusterInCreationPhase = Number ( clusterId ) === 0
28
29
@@ -40,6 +41,7 @@ const DeleteClusterConfirmationModal = ({
40
41
await deleteCluster ( { id : numberedClusterId } )
41
42
}
42
43
reload ?.( )
44
+ handleSuccess ?.( )
43
45
}
44
46
45
47
const handleToggleShouldDeleteInstalledCluster = ( ) => {
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ export interface DeleteClusterConfirmationModalProps
231
231
Pick < ClusterEnvironmentListProps , 'clusterId' > {
232
232
handleClose : ( ) => void
233
233
installationId : string
234
+ handleSuccess ?: ( ) => void
234
235
}
235
236
236
237
export interface DeleteClusterPayload {
You can’t perform that action at this time.
0 commit comments