mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 23:52:09 +00:00
merge main
This commit is contained in:
@@ -69,14 +69,19 @@ export const getProjectHomePage = (workspace: Workspace) => {
|
||||
return `/${workspace.type}/${workspace.id}/certificates`;
|
||||
}
|
||||
|
||||
return `/${workspace.type}/${workspace.id}/kms`;
|
||||
if (workspace.type === ProjectType.KMS) {
|
||||
return `/${workspace.type}/${workspace.id}/kms`;
|
||||
}
|
||||
|
||||
return `/${workspace.type}/${workspace.id}/ssh`;
|
||||
};
|
||||
|
||||
export const getProjectTitle = (type: ProjectType) => {
|
||||
const titleConvert = {
|
||||
[ProjectType.SecretManager]: "Secret Management",
|
||||
[ProjectType.KMS]: "Key Management",
|
||||
[ProjectType.CertificateManager]: "Cert Management"
|
||||
[ProjectType.CertificateManager]: "Cert Management",
|
||||
[ProjectType.SSH]: "SSH"
|
||||
};
|
||||
return titleConvert[type];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user