diff --git a/Hcs.WebApp/Components/Pages/Management/Users.razor b/Hcs.WebApp/Components/Pages/Management/Users.razor
index 5620300..19969c7 100644
--- a/Hcs.WebApp/Components/Pages/Management/Users.razor
+++ b/Hcs.WebApp/Components/Pages/Management/Users.razor
@@ -33,7 +33,7 @@
@errorMessage
-
+
@@ -41,6 +41,7 @@
@if (userWithRole.User.Id != currentUserId)
{
+
}
@@ -131,7 +132,7 @@
try
{
if (await DialogService.Confirm(
- $"Вы уверены что хотите удалить пользователя '{userWithRole.User.UserName}'?",
+ GetDeleteMessage(userWithRole.User.UserName),
"Удаление пользователя",
new ConfirmOptions()
{
@@ -162,6 +163,16 @@
}
}
+ RenderFragment GetDeleteMessage(string userName)
+ {
+ return __builder =>
+ {
+
+ Вы уверены что хотите удалить пользователя @userName?
+
+ };
+ }
+
async Task UpdateGridAsync()
{
isLoading = true;
diff --git a/Hcs.WebApp/Services/UsersService.cs b/Hcs.WebApp/Services/UsersService.cs
index 4cc42eb..44dd9e6 100644
--- a/Hcs.WebApp/Services/UsersService.cs
+++ b/Hcs.WebApp/Services/UsersService.cs
@@ -19,6 +19,7 @@ namespace Hcs.WebApp.Services
return await (from user in context.Users
join userRole in context.UserRoles on user.Id equals userRole.UserId
join role in context.Roles on userRole.RoleId equals role.Id
+ orderby role.Priority
select new AppUserWithRole()
{
User = user,