From e5d4c173242c6627588883470499a3899c2c2361 Mon Sep 17 00:00:00 2001 From: Art Date: Tue, 21 Sep 2021 08:09:33 +0300 Subject: [PATCH] 161. User info modal - Part 1 (#21) --- .../app/component/user/user.component.html | 93 +++++++++++++++++-- .../src/app/component/user/user.component.ts | 6 ++ support-portal-frontend/src/index.html | 15 ++- 3 files changed, 104 insertions(+), 10 deletions(-) diff --git a/support-portal-frontend/src/app/component/user/user.component.html b/support-portal-frontend/src/app/component/user/user.component.html index ed15c26..7206d28 100644 --- a/support-portal-frontend/src/app/component/user/user.component.html +++ b/support-portal-frontend/src/app/component/user/user.component.html @@ -64,7 +64,7 @@ - + @@ -86,16 +86,91 @@ - - - - + + + + + + - - diff --git a/support-portal-frontend/src/app/component/user/user.component.ts b/support-portal-frontend/src/app/component/user/user.component.ts index 340ba3f..61d7512 100644 --- a/support-portal-frontend/src/app/component/user/user.component.ts +++ b/support-portal-frontend/src/app/component/user/user.component.ts @@ -19,6 +19,7 @@ export class UserComponent implements OnInit, OnDestroy { public users: User[] = []; public refreshing: boolean; private subscriptions: Subscription[] = []; + public selectedUser: User; constructor(private userService: UserService, private notificationService: NotificationService) { @@ -58,6 +59,11 @@ export class UserComponent implements OnInit, OnDestroy { } + public onSelectUser(selectedUser: User): void { + this.selectedUser = selectedUser; + document.getElementById('openUserInfo')?.click(); + } + private sendErrorNotification(message: string) { this.notificationService.notify(NotificationType.ERROR, message ? message : 'An error occurred. Please try again') } diff --git a/support-portal-frontend/src/index.html b/support-portal-frontend/src/index.html index cea38e9..54f26c6 100644 --- a/support-portal-frontend/src/index.html +++ b/support-portal-frontend/src/index.html @@ -8,6 +8,19 @@ - + + + + + + + +