ДОВІДНИК З NODE-RED українською мовою
onClick
Disabled
onClick
Disabled
onClick
{ { deleteUser.run(() => getUsers.run(), () => {}) } }
Table Data
Text
Edit User Role:
Options
{ { getAllRoles.data.map(e=>{
return{
"label": e.name,
"value": e._id
}
}) } }
Default Value
{
"label": "",
"value": ""
}
onClick
Valid
Error Message
Passwords must be the matching
Options
{ { getAllRoles.data.map(e=>{
return{
"label": e.name,
"value": e._id
}
}) } }
Default Value
{
"label": "User",
"value": "634fe97d28c82b00103cd25d"
}
onClick
POST /createUser
body
{
"firstname": "",
"lastname": "",
"email": "",
"password": "",
"role": ""
}
DELETE /deleteUser
PUT /editUserRole
body
{
"role": "",
"_id": ""
}
GET /getAllRoles
GET /getUsers
export default {
editUserRole: async () => {
await editUserRole.run();
closeModal('ModalEditRole');
getUsers.run();
},
createUser: async () => {
await createUser.run();
closeModal('ModalCreateUser');
getUsers.run();
}
}