mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 07:27:58 +00:00
Correct enable blind-indexing web ui rendering condition
This commit is contained in:
+1
-4
@@ -11,9 +11,6 @@ import {
|
|||||||
useNameWorkspaceSecrets
|
useNameWorkspaceSecrets
|
||||||
} from "@app/hooks/api";
|
} from "@app/hooks/api";
|
||||||
|
|
||||||
// TODO: add check so that this only shows up if user is
|
|
||||||
// an admin in the workspace
|
|
||||||
|
|
||||||
export const ProjectIndexSecretsSection = () => {
|
export const ProjectIndexSecretsSection = () => {
|
||||||
const { currentWorkspace } = useWorkspace();
|
const { currentWorkspace } = useWorkspace();
|
||||||
const { data: isBlindIndexed, isLoading: isBlindIndexedLoading } = useGetWorkspaceIndexStatus(currentWorkspace?._id ?? "");
|
const { data: isBlindIndexed, isLoading: isBlindIndexedLoading } = useGetWorkspaceIndexStatus(currentWorkspace?._id ?? "");
|
||||||
@@ -53,7 +50,7 @@ export const ProjectIndexSecretsSection = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
return (!isBlindIndexedLoading && !isBlindIndexed) ? (
|
return (!isBlindIndexedLoading && (isBlindIndexed === false)) ? (
|
||||||
<div className="mb-6 p-4 bg-mineshaft-900 rounded-lg border border-mineshaft-600">
|
<div className="mb-6 p-4 bg-mineshaft-900 rounded-lg border border-mineshaft-600">
|
||||||
<p className="mb-3 text-xl font-semibold">Blind Indices</p>
|
<p className="mb-3 text-xl font-semibold">Blind Indices</p>
|
||||||
<p className="text-gray-400 mb-8">
|
<p className="text-gray-400 mb-8">
|
||||||
|
|||||||
Reference in New Issue
Block a user