mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
Update SecretEditRow.tsx
This commit is contained in:
+2
-1
@@ -93,12 +93,13 @@ export const SecretEditRow = ({
|
|||||||
<div className="group flex w-full cursor-text items-center space-x-2">
|
<div className="group flex w-full cursor-text items-center space-x-2">
|
||||||
<div className="flex-grow border-r border-r-mineshaft-600 pr-2 pl-1">
|
<div className="flex-grow border-r border-r-mineshaft-600 pr-2 pl-1">
|
||||||
<Controller
|
<Controller
|
||||||
disabled={isImportedSecret}
|
disabled={isImportedSecret && !defaultValue}
|
||||||
control={control}
|
control={control}
|
||||||
name="value"
|
name="value"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<InfisicalSecretInput
|
<InfisicalSecretInput
|
||||||
{...field}
|
{...field}
|
||||||
|
isReadOnly={isImportedSecret}
|
||||||
value={field.value as string}
|
value={field.value as string}
|
||||||
key="secret-input"
|
key="secret-input"
|
||||||
isVisible={isVisible}
|
isVisible={isVisible}
|
||||||
|
|||||||
Reference in New Issue
Block a user