Skip to content

Commit

Permalink
fixed clientReadonlyMetadata dashboard update
Browse files Browse the repository at this point in the history
  • Loading branch information
fomalhautb committed Nov 6, 2024
1 parent 788a724 commit 4324846
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dashboard/src/components/user-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function UserDialog(props: {
...values,
primaryEmailAuthEnabled: true,
clientMetadata: values.clientMetadata ? JSON.parse(values.clientMetadata) : undefined,
clientReadOnlyMetadata: values.clientReadOnlyMetadata ? JSON.parse(values.clientReadOnlyMetadata) : undefined,
serverMetadata: values.serverMetadata ? JSON.parse(values.serverMetadata) : undefined
};

Expand Down Expand Up @@ -118,7 +119,7 @@ export function UserDialog(props: {
<Accordion type="single" collapsible>
<AccordionItem value="item-1">
<AccordionTrigger>Metadata</AccordionTrigger>
<AccordionContent>
<AccordionContent className="space-y-4">
<TextAreaField rows={3} control={form.control} label="Client metadata" name="clientMetadata" placeholder="null" monospace />
<TextAreaField rows={3} control={form.control} label="Client read only metadata" name="clientReadOnlyMetadata" placeholder="null" monospace />
<TextAreaField rows={3} control={form.control} label="Server metadata" name="serverMetadata" placeholder="null" monospace />
Expand Down

0 comments on commit 4324846

Please sign in to comment.