mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 00:27:35 +00:00
feat: added a success message on upgrade success
This commit is contained in:
+10
-1
@@ -47,7 +47,15 @@ export const SecretV2MigrationSection = () => {
|
|||||||
|
|
||||||
const isProjectUpgraded = workspaceDetails?.version === ProjectVersion.V3;
|
const isProjectUpgraded = workspaceDetails?.version === ProjectVersion.V3;
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (isProjectUpgraded && migrateProjectToV3.data) {
|
||||||
|
createNotification({ type: "success", text: "Project upgrade completed successfully" });
|
||||||
|
migrateProjectToV3.reset();
|
||||||
|
}
|
||||||
|
}, [isProjectUpgraded, Boolean(migrateProjectToV3.data)]);
|
||||||
|
|
||||||
if (isProjectUpgraded || currentWorkspace?.version === ProjectVersion.V3) return null;
|
if (isProjectUpgraded || currentWorkspace?.version === ProjectVersion.V3) return null;
|
||||||
|
|
||||||
const isUpgrading = workspaceDetails?.upgradeStatus === ProjectUpgradeStatus.InProgress;
|
const isUpgrading = workspaceDetails?.upgradeStatus === ProjectUpgradeStatus.InProgress;
|
||||||
const didProjectUpgradeFailed = workspaceDetails?.upgradeStatus === ProjectUpgradeStatus.Failed;
|
const didProjectUpgradeFailed = workspaceDetails?.upgradeStatus === ProjectUpgradeStatus.Failed;
|
||||||
|
|
||||||
@@ -82,7 +90,8 @@ export const SecretV2MigrationSection = () => {
|
|||||||
)}
|
)}
|
||||||
<p className="mb-2 text-lg font-semibold">Action Required</p>
|
<p className="mb-2 text-lg font-semibold">Action Required</p>
|
||||||
<p className="mb-4 leading-7 text-gray-400">
|
<p className="mb-4 leading-7 text-gray-400">
|
||||||
Infisical secrets engine is now 10x faster and allows you to encrypt secrets with your own KMS. Upgrade your project to receive these improvements.
|
Infisical secrets engine is now 10x faster and allows you to encrypt secrets with your own
|
||||||
|
KMS. Upgrade your project to receive these improvements.
|
||||||
<b>{!isAdmin && "This is an admin only operation."}</b>
|
<b>{!isAdmin && "This is an admin only operation."}</b>
|
||||||
</p>
|
</p>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user