mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
Add feature flag for showing upgrade project modal
This commit is contained in:
@@ -84,6 +84,7 @@ export const UpgradeProjectAlert = ({ project }: UpgradeProjectAlertProps): JSX.
|
|||||||
(currentStatus === null && statusIsLoading)) &&
|
(currentStatus === null && statusIsLoading)) &&
|
||||||
projectStatus?.status !== "FAILED";
|
projectStatus?.status !== "FAILED";
|
||||||
|
|
||||||
|
if (process.env.NEXT_PUBLIC_SHOW_UPGRADE_PROJECT !== "true") return null;
|
||||||
if (project.version !== "v1") return null;
|
if (project.version !== "v1") return null;
|
||||||
if (membership.role !== "admin") return null;
|
if (membership.role !== "admin") return null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user