Skip to content

Commit c9c2f91

Browse files
authored
Merge pull request #4355 from mercedes-benz/deployed-app-config/backend
bugfix
2 parents c542fb4 + 15f8100 commit c9c2f91

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/code-space-mfe/src/components/deployedAppConfigModal/DeployedAppConfigModal.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ const DeployedAppConfigModal = (props) => {
356356
Notification.show(`Oidc plugin updated successfully`);
357357
setPluginEnabled(!pluginEnabled);
358358
if (enableAuthorizer) {
359-
ProgressIndicator.show();
360359
CodeSpaceApiClient.updatePluginStatus(
361360
props?.workspaceId,
362361
props?.isStaging ? 'int' : 'prod',
@@ -373,10 +372,8 @@ const DeployedAppConfigModal = (props) => {
373372
);
374373
// Notification.show('Error in updating api authoriser plugin', 'alert');
375374
}
376-
ProgressIndicator.hide();
377375
})
378376
.catch((err) => {
379-
ProgressIndicator.hide();
380377
Notification.show(
381378
'Error in updating api authoriser plugin. Please try again later.\n' +
382379
err?.response?.data?.errors[0]?.message,
@@ -392,16 +389,17 @@ const DeployedAppConfigModal = (props) => {
392389
);
393390
// Notification.show('Error in updating OIDC plugin', 'alert');
394391
}
395-
ProgressIndicator.hide();
396392
})
397393
.catch((err) => {
398-
ProgressIndicator.hide();
399394
Notification.show(
400395
'Error in updating oidc plugin. Please try again later.\n' +
401396
err?.response?.data?.errors[0]?.message,
402397
'alert',
403398
);
404399
// Notification.show('Error in updating OIDC Plugin. Please try again later.', 'alert');
400+
})
401+
.finally(() => {
402+
ProgressIndicator.hide();
405403
});
406404
};
407405

0 commit comments

Comments
 (0)