diff --git a/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx b/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx index e58ba2be..b492037a 100644 --- a/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx +++ b/frontend/app/[team]/apps/[app]/_components/AppSecretRow.tsx @@ -16,6 +16,7 @@ import { FaUndo, FaChevronDown, FaPlus, + FaExclamationCircle, } from 'react-icons/fa' import { AppSecret } from '../types' import { organisationContext } from '@/contexts/organisationContext' @@ -138,7 +139,7 @@ const EnvSecret = ({
{clientEnvSecret.env.name}
+ {sameAsProd && ( + + )}
@@ -163,19 +170,6 @@ const EnvSecret = ({
) : (
- {/* - {showValue ? ( -
{envSecret.secret.value}
- ) : ( - {'*'.repeat(envSecret.secret.value.length)} - )} -
*/} -
{isBoolean && !stagedForDelete && ( @@ -210,6 +204,7 @@ const EnvSecret = ({ )} type={showValue ? 'text' : 'password'} value={clientEnvSecret.secret.value} + placeholder="VALUE" onChange={(e) => updateEnvValue( appSecretId, @@ -271,6 +266,8 @@ export const AppSecretRow = ({ const [key, setKey] = useState(clientAppSecret.key) const [isOpen, setIsOpen] = useState(false) + const toggleAccordion = () => setIsOpen(!isOpen) + const handleUpdateKey = (k: string) => { const sanitizedK = k.replace(/ /g, '_').toUpperCase() setKey(sanitizedK) @@ -373,7 +370,7 @@ export const AppSecretRow = ({ )} >