diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx index c0ba7184e..67404f878 100644 --- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx +++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/SecretDetailSidebar.tsx @@ -403,6 +403,7 @@ export const SecretDetailSidebar = ({ isLoadingSecretValue || isErrorFetchingSecretValue } + canEditButNotView={secret.secretValueHidden && canEditSecretValue} environment={environment} secretPath={secretPath} key="secret-value" @@ -703,6 +704,7 @@ export const SecretDetailSidebar = ({
{secretVersion?.map((version) => ( void; + canReadValue: boolean; } export const SecretVersionItem = ({ secretVersion: { createdAt, version, actor, secretValueHidden }, secret, currentVersion, - onRevert + onRevert, + canReadValue }: SecretVersionItemProps) => { const { currentProject } = useProject(); @@ -244,7 +246,7 @@ export const SecretVersionItem = ({
- {!secret?.isRotatedSecret && ( + {!secret?.isRotatedSecret && canReadValue && (