diff --git a/dashboard/src/app/(inside)/user/[id]/page.tsx b/dashboard/src/app/(inside)/user/[id]/page.tsx
index 2fff21c..3393c58 100644
--- a/dashboard/src/app/(inside)/user/[id]/page.tsx
+++ b/dashboard/src/app/(inside)/user/[id]/page.tsx
@@ -143,7 +143,11 @@ export default async function UserDetailsPage({ params }: { params: Promise<{ id
schema
-
+
:
diff --git a/dashboard/src/components/dynamic-form.tsx b/dashboard/src/components/dynamic-form.tsx
index 9020d46..f36cde4 100644
--- a/dashboard/src/components/dynamic-form.tsx
+++ b/dashboard/src/components/dynamic-form.tsx
@@ -15,6 +15,7 @@ interface DynamicFormProps {
onValid: SubmitHandler,
onInvalid: SubmitErrorHandler,
submitLabel?: string,
+ disabled?: boolean,
}
export function DynamicForm(
@@ -25,6 +26,7 @@ export function DynamicForm(
onValid,
onInvalid,
submitLabel,
+ disabled,
}: DynamicFormProps,
) {
@@ -48,7 +50,7 @@ export function DynamicForm(
key={fullFieldName}
render={({ field }) => (
-
+
{key}
)}
@@ -65,7 +67,7 @@ export function DynamicForm(
{value.title}
-
+
{value.description}
@@ -87,7 +89,7 @@ export function DynamicForm(
diff --git a/dashboard/src/components/identity/identity-traits.tsx b/dashboard/src/components/identity/identity-traits.tsx
index 1606db4..3feb314 100644
--- a/dashboard/src/components/identity/identity-traits.tsx
+++ b/dashboard/src/components/identity/identity-traits.tsx
@@ -16,9 +16,10 @@ import { useState } from 'react';
interface IdentityTraitFormProps {
schema: KratosSchema;
identity: Identity;
+ disabled: boolean;
}
-export function IdentityTraits({ schema, identity }: IdentityTraitFormProps) {
+export function IdentityTraits({ schema, identity, disabled }: IdentityTraitFormProps) {
const [currentIdentity, setCurrentIdentity] = useState(identity);
@@ -74,10 +75,11 @@ export function IdentityTraits({ schema, identity }: IdentityTraitFormProps) {
return (
Public Metadata
-
+
This has to be valid JSON
@@ -99,7 +101,7 @@ export function IdentityTraits({ schema, identity }: IdentityTraitFormProps) {
Admin Metadata
-
+
This has to be valid JSON