diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Models/User.cs b/src/Elektrifikatsiya/Elektrifikatsiya/Models/User.cs
index 48ddf27..0dbc315 100644
--- a/src/Elektrifikatsiya/Elektrifikatsiya/Models/User.cs
+++ b/src/Elektrifikatsiya/Elektrifikatsiya/Models/User.cs
@@ -15,7 +15,7 @@ public class User
public DateTime LastLoginDate { get; set; }
[Required]
- public string Name { get; private set; }
+ public string Name { get; set; }
[Required]
public string PasswordHash { get; private set; }
diff --git a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Admin.razor b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Admin.razor
index 9f86930..05dc402 100644
--- a/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Admin.razor
+++ b/src/Elektrifikatsiya/Elektrifikatsiya/Pages/Admin.razor
@@ -82,15 +82,15 @@
User Name
-
+
User E-Mail
-
+
User Password
-
+
@@ -116,77 +116,80 @@
-
-
-
-
- User Settings
-
-
-
-
-
-
- User Name
-
-
- Here you can change the name of the User
-
-
-
-
-
-
-
-
-
- E-Mail
-
-
- Here you can change the E-Mail of a User
-
-
-
-
-
-
-
-
- Password
-
-
- Here you can change the password of a User
-
-
-
+ @if (SelectedUser is not null)
+ {
+
+
+
+
+ User Settings
+
+
+
+
+
+
+ User Name
+
+
+ Here you can change the name of the User
+
+
+
+
-
-
-
-
-
-
-
- Select Role
-
-
- Here you select or change the role of to User or Admin
-
-
-
- Roles
-
- Admin
-
- User
-
-
-
-
-
-
-
+
+
+
+ E-Mail
+
+
+ Here you can change the E-Mail of a User
+
+
+
+
+
+
+
+
+ Password
+
+
+ Here you can change the password of a User
+
+
+
+
+
+
+
+
+
+
+
+ Select Role
+
+
+ Here you select or change the role of to User or Admin
+
+
+
+
+ Roles
+
+ Admin
+
+ User
+
+
+
+
+
+
+
+ }
@@ -196,7 +199,6 @@
List users = new List();
User? SelectedUser = null;
- User? UserCopy = null;
bool hideButtonSettings = true;
bool newpage = true;