improvement: revise access restricted banner and refactor/update relevant locations

This commit is contained in:
Scott Wilson
2025-07-24 15:52:29 -07:00
parent 91a1c34637
commit 7af5a4ad8d
10 changed files with 53 additions and 102 deletions
@@ -948,12 +948,12 @@ const Page = () => {
/>
)}
{noAccessSecretCount > 0 && <SecretNoAccessListView count={noAccessSecretCount} />}
{!canReadSecret &&
!canReadDynamicSecret &&
!canReadSecretImports &&
folders?.length === 0 && <PermissionDeniedBanner />}
</div>
</div>
{!canReadSecret &&
!canReadDynamicSecret &&
!canReadSecretImports &&
folders?.length === 0 && <PermissionDeniedBanner />}
{!isDetailsLoading &&
(totalCount > 0 ||
pendingChanges.secrets.length > 0 ||