feat(secret-rotation): added db ssl option in test function

This commit is contained in:
Akhil Mohan
2023-10-26 20:17:18 +05:30
parent c9c40521b2
commit 9248f36edb
3 changed files with 7 additions and 5 deletions

View File

@@ -163,10 +163,10 @@ export const SecretRotationPage = withProjectPermission(
};
const handleCreateRotation = async (provider: TSecretRotationProvider) => {
// if (subscription && !subscription?.secretRotation) {
// handlePopUpOpen("upgradePlan");
// return;
// }
if (subscription && !subscription?.secretRotation) {
handlePopUpOpen("upgradePlan");
return;
}
if (!canCreateRotation) {
createNotification({ type: "error", text: "Access permission denied!!" });
return;
@@ -392,7 +392,7 @@ export const SecretRotationPage = withProjectPermission(
title="Are you sure want to delete this rotation?"
subTitle="This will stop the rotation from dynamically changing. Secret won't be deleted"
onChange={(isOpen) => handlePopUpToggle("deleteRotation", isOpen)}
deleteKey="confirm"
deleteKey="delete"
onDeleteApproved={handleDeleteRotation}
/>
<UpgradePlanModal