mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 16:27:46 +00:00
feat: added banner on crossing user/identity limit
This commit is contained in:
@@ -41,9 +41,9 @@ export const ProjectLayout = () => {
|
|||||||
const shouldUpgrade = Boolean(hasUserLimitCrossed || hasIdentityLimitCrossed);
|
const shouldUpgrade = Boolean(hasUserLimitCrossed || hasIdentityLimitCrossed);
|
||||||
let upgradeText = "";
|
let upgradeText = "";
|
||||||
if (hasUserLimitCrossed) {
|
if (hasUserLimitCrossed) {
|
||||||
upgradeText = `You've reached the maximum number of organisation users(${subscription.membersUsed}/${subscription?.memberLimit}).`;
|
upgradeText = `You've reached the maximum number of organisation users(${subscription?.memberLimit}).`;
|
||||||
} else if (hasIdentityLimitCrossed) {
|
} else if (hasIdentityLimitCrossed) {
|
||||||
upgradeText = `You've reached the maximum number of organisation identities(${subscription.identitiesUsed}/${subscription?.identityLimit}).`;
|
upgradeText = `You've reached the maximum number of organisation identities(${subscription?.identityLimit}).`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const isSecretManager = currentWorkspace?.type === ProjectType.SecretManager;
|
const isSecretManager = currentWorkspace?.type === ProjectType.SecretManager;
|
||||||
|
|||||||
Reference in New Issue
Block a user