From 8347f8a429ceb98b068fac577a0321bd67ae1b07 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 10 Oct 2022 15:39:27 +0200 Subject: Add auto complete to user edit password --- client/src/app/+admin/overview/users/user-edit/user-edit.ts | 3 ++- .../app/+admin/overview/users/user-edit/user-password.component.html | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'client/src') diff --git a/client/src/app/+admin/overview/users/user-edit/user-edit.ts b/client/src/app/+admin/overview/users/user-edit/user-edit.ts index 21e9629ab..5428f6ce9 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-edit.ts +++ b/client/src/app/+admin/overview/users/user-edit/user-edit.ts @@ -62,7 +62,8 @@ export abstract class UserEdit extends FormReactive implements OnInit { displayDangerZone () { if (this.isCreation()) return false - if (this.user?.pluginAuth) return false + if (!this.user) return false + if (this.user.pluginAuth) return false if (this.auth.getUser().id === this.user.id) return false return true diff --git a/client/src/app/+admin/overview/users/user-edit/user-password.component.html b/client/src/app/+admin/overview/users/user-edit/user-password.component.html index 13f57024b..173825957 100644 --- a/client/src/app/+admin/overview/users/user-edit/user-password.component.html +++ b/client/src/app/+admin/overview/users/user-edit/user-password.component.html @@ -1,8 +1,10 @@
-