Skip to content

Commit cb4a84d

Browse files
authored
improvement(ui): move secret visibility below description (#7315)
1 parent 27e4632 commit cb4a84d

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/settings/secrets/[credentialId]

apps/sim/app/workspace/[workspaceId]/settings/secrets/[credentialId]/secret-detail.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,22 @@ export function SecretDetail({ workspaceId, credentialId }: SecretDetailProps) {
255255
/>
256256
</DetailSection>
257257

258+
{!isPersonal && (
259+
<DetailSection title='Description'>
260+
<ChipTextarea
261+
id='secret-description'
262+
rows={4}
263+
value={form.descriptionDraft}
264+
onChange={(event) => form.setDescriptionDraft(event.target.value)}
265+
placeholder='Add a description...'
266+
maxLength={500}
267+
autoComplete='off'
268+
data-lpignore='true'
269+
viewOnly={!isWorkspaceSecretAdmin}
270+
/>
271+
</DetailSection>
272+
)}
273+
258274
{!isPersonal && (
259275
<DetailSection title='Visibility'>
260276
<div className='flex items-center justify-between'>
@@ -276,22 +292,6 @@ export function SecretDetail({ workspaceId, credentialId }: SecretDetailProps) {
276292
</DetailSection>
277293
)}
278294

279-
{!isPersonal && (
280-
<DetailSection title='Description'>
281-
<ChipTextarea
282-
id='secret-description'
283-
rows={4}
284-
value={form.descriptionDraft}
285-
onChange={(event) => form.setDescriptionDraft(event.target.value)}
286-
placeholder='Add a description...'
287-
maxLength={500}
288-
autoComplete='off'
289-
data-lpignore='true'
290-
viewOnly={!isWorkspaceSecretAdmin}
291-
/>
292-
</DetailSection>
293-
)}
294-
295295
{!isPersonal && <CredentialMembersSection credentialId={credential.id} isAdmin={isAdmin} />}
296296
</CredentialDetailLayout>
297297

0 commit comments

Comments
 (0)