mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 00:28:49 +00:00
feat(rbac): changed withpermission hoc text and removed loading on overview pageg
This commit is contained in:
@@ -243,6 +243,8 @@ export const SecretOverviewPage = () => {
|
||||
folders?.some(({ isLoading }) => !isLoading) && secrets?.some(({ isLoading }) => !isLoading)
|
||||
);
|
||||
|
||||
const canViewOverviewPage = Boolean(userAvailableEnvs.length);
|
||||
|
||||
const filteredSecretNames = secKeys
|
||||
?.filter((name) => name.toUpperCase().includes(searchFilter.toUpperCase()))
|
||||
.sort((a, b) => (sortDir === "asc" ? a.localeCompare(b) : b.localeCompare(a)));
|
||||
@@ -347,7 +349,7 @@ export const SecretOverviewPage = () => {
|
||||
</Tr>
|
||||
</THead>
|
||||
<TBody>
|
||||
{isTableLoading && (
|
||||
{canViewOverviewPage && isTableLoading && (
|
||||
<TableSkeleton
|
||||
columns={userAvailableEnvs.length + 1}
|
||||
innerKey="secret-overview-loading"
|
||||
|
||||
Reference in New Issue
Block a user