Add user editing
This commit is contained in:
@ -94,7 +94,25 @@
|
||||
|
||||
async Task EditUser(AppUserWithRole userWithRole)
|
||||
{
|
||||
// TODO: Implement method
|
||||
var success = await DialogService.OpenAsync<EditUser>(
|
||||
"Редактирование пользователя",
|
||||
new Dictionary<string, object>()
|
||||
{
|
||||
{ nameof(Dialogs.EditUser.UserId), userWithRole.User.Id },
|
||||
{ nameof(Dialogs.EditUser.RoleId), userWithRole.Role.Id }
|
||||
},
|
||||
new DialogOptions()
|
||||
{
|
||||
Width = "420px",
|
||||
ShowClose = false,
|
||||
CloseDialogOnEsc = false,
|
||||
CloseDialogOnOverlayClick = false
|
||||
});
|
||||
|
||||
if (success)
|
||||
{
|
||||
await UpdateGrid();
|
||||
}
|
||||
}
|
||||
|
||||
async Task DeleteUser(AppUserWithRole userWithRole)
|
||||
|
||||
Reference in New Issue
Block a user