Add user first name and last name to backend table UI
This commit is contained in:
parent
1e595cb452
commit
10c8c569f8
|
@ -47,6 +47,8 @@
|
||||||
})
|
})
|
||||||
schema.email.displayName = "Email"
|
schema.email.displayName = "Email"
|
||||||
schema.roleId.displayName = "Role"
|
schema.roleId.displayName = "Role"
|
||||||
|
schema.firstName.displayName = "First Name"
|
||||||
|
schema.lastName.displayName = "Last Name"
|
||||||
if (schema.status) {
|
if (schema.status) {
|
||||||
schema.status.displayName = "Status"
|
schema.status.displayName = "Status"
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
delete customSchema["email"]
|
delete customSchema["email"]
|
||||||
delete customSchema["roleId"]
|
delete customSchema["roleId"]
|
||||||
delete customSchema["status"]
|
delete customSchema["status"]
|
||||||
|
delete customSchema["firstName"]
|
||||||
|
delete customSchema["lastName"]
|
||||||
return Object.entries(customSchema)
|
return Object.entries(customSchema)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -87,6 +89,14 @@
|
||||||
meta={{ name: "password", type: "password" }}
|
meta={{ name: "password", type: "password" }}
|
||||||
bind:value={row.password}
|
bind:value={row.password}
|
||||||
/>
|
/>
|
||||||
|
<RowFieldControl
|
||||||
|
meta={{ ...tableSchema.firstName, name: "First Name" }}
|
||||||
|
bind:value={row.firstName}
|
||||||
|
/>
|
||||||
|
<RowFieldControl
|
||||||
|
meta={{ ...tableSchema.lastName, name: "Last Name" }}
|
||||||
|
bind:value={row.lastName}
|
||||||
|
/>
|
||||||
<!-- Defer rendering this select until roles load, otherwise the initial
|
<!-- Defer rendering this select until roles load, otherwise the initial
|
||||||
selection is always undefined -->
|
selection is always undefined -->
|
||||||
<Select
|
<Select
|
||||||
|
|
Loading…
Reference in New Issue