mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 09:28:06 +00:00
fixed import icon in the overview dashboard
This commit is contained in:
@@ -138,6 +138,7 @@ export const SecretOverviewPage = () => {
|
|||||||
const { isImportedSecretPresentInEnv } = useGetImportedSecretsAllEnvs({
|
const { isImportedSecretPresentInEnv } = useGetImportedSecretsAllEnvs({
|
||||||
projectId: workspaceId,
|
projectId: workspaceId,
|
||||||
decryptFileKey: latestFileKey!,
|
decryptFileKey: latestFileKey!,
|
||||||
|
path: secretPath,
|
||||||
environments: userAvailableEnvs.map(({ slug }) => slug)
|
environments: userAvailableEnvs.map(({ slug }) => slug)
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -340,6 +341,8 @@ export const SecretOverviewPage = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const canViewOverviewPage = Boolean(userAvailableEnvs.length);
|
const canViewOverviewPage = Boolean(userAvailableEnvs.length);
|
||||||
|
// This is needed to also show imports from other paths – right now those are missing.
|
||||||
|
// const combinedKeys = [...secKeys, ...secretImports.map((impSecrets) => impSecrets?.data?.map((impSec) => impSec.secrets?.map((impSecKey) => impSecKey.key))).flat().flat()];
|
||||||
const filteredSecretNames = secKeys
|
const filteredSecretNames = secKeys
|
||||||
?.filter((name) => name.toUpperCase().includes(searchFilter.toUpperCase()))
|
?.filter((name) => name.toUpperCase().includes(searchFilter.toUpperCase()))
|
||||||
.sort((a, b) => (sortDir === "asc" ? a.localeCompare(b) : b.localeCompare(a)));
|
.sort((a, b) => (sortDir === "asc" ? a.localeCompare(b) : b.localeCompare(a)));
|
||||||
|
|||||||
Reference in New Issue
Block a user