From d347a494e93e19d18d3e3d7df644c78600f12d8b Mon Sep 17 00:00:00 2001 From: Nicola Lanzilotto Date: Fri, 6 Oct 2023 17:01:47 +0200 Subject: [PATCH] Bug fixing --- .../ws-requests-list.component.html | 41 ++++++++++--------- .../ws-requests-list.component.scss | 6 +-- .../ws-requests-list.component.ts | 35 ++++++++-------- src/assets/css/demo.scss | 2 +- 4 files changed, 43 insertions(+), 41 deletions(-) diff --git a/src/app/ws_requests/ws-requests-list/ws-requests-list.component.html b/src/app/ws_requests/ws-requests-list/ws-requests-list.component.html index f3f331878a60..c26ebf374171 100755 --- a/src/app/ws_requests/ws-requests-list/ws-requests-list.component.html +++ b/src/app/ws_requests/ws-requests-list/ws-requests-list.component.html @@ -401,7 +401,7 @@ - +
@@ -421,16 +422,16 @@
- - - + + + - - - + + + @@ -443,9 +444,9 @@
- - - + + +
@@ -482,10 +483,10 @@
- - - - + + + +
- - - + + +
@@ -572,7 +573,7 @@
- --> + diff --git a/src/app/ws_requests/ws-requests-list/ws-requests-list.component.scss b/src/app/ws_requests/ws-requests-list/ws-requests-list.component.scss index dac07bb45744..0e2399db9dc6 100755 --- a/src/app/ws_requests/ws-requests-list/ws-requests-list.component.scss +++ b/src/app/ws_requests/ws-requests-list/ws-requests-list.component.scss @@ -720,12 +720,12 @@ $f21blue: #039be5; .middle-nw { float: left; // width: 90%; - width: 89%; + width: 91%; // overflow: auto; overflow: hidden; /*will change this to hidden later to deny scolling to user*/ white-space: nowrap; - height: 60px; + // height: 60px; } // .teammates-with-picture-assigned-requests-count { @@ -816,7 +816,7 @@ $f21blue: #039be5; align-items: center; justify-content: center; display: flex; - margin-top: 4px; + margin-top: 9px; background: #e4e6eb; border-radius: 50%; padding: 2px; diff --git a/src/app/ws_requests/ws-requests-list/ws-requests-list.component.ts b/src/app/ws_requests/ws-requests-list/ws-requests-list.component.ts index b0c2cc088793..151319bbbf3b 100755 --- a/src/app/ws_requests/ws-requests-list/ws-requests-list.component.ts +++ b/src/app/ws_requests/ws-requests-list/ws-requests-list.component.ts @@ -565,12 +565,13 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit // createBotsAndUsersArray() { this.usersService.getProjectUsersByProjectId().subscribe((_projectUsers: any) => { // this.logger.log('% »»» WebSocketJs WF WS-RL - +++ GET PROJECT-USERS ', projectUsers); - console.log('[WS-REQUESTS-LIST]- GET PROJECT-USERS RES ', _projectUsers); + // console.log('[WS-REQUESTS-LIST]- GET PROJECT-USERS RES ', _projectUsers); if (_projectUsers) { this.project_users = _projectUsers this.project_user_length = _projectUsers.length; - this.logger.log('[WS-REQUESTS-LIST] - GET PROJECT-USERS LENGTH ', this.project_user_length); - // this.projectUserArray = _projectUsers; + // console.log('[WS-REQUESTS-LIST] - GET PROJECT-USERS LENGTH ', this.project_user_length); + // console.log('[WS-REQUESTS-LIST] - GET PROJECT-USERS project_users ', this.project_users); + this.projectUserArray = _projectUsers; _projectUsers.forEach(projectuser => { @@ -594,7 +595,7 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit this.wsRequestsService.subscriptionToWsAllProjectUsersOfTheProject(projectuser.id_user._id); // Commented nk - // this.listenToAllProjectUsersOfProject$(projectuser) + this.listenToAllProjectUsersOfProject$(projectuser) this.createAgentAvatarInitialsAnfBckgrnd(projectuser.id_user) @@ -634,7 +635,7 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit takeUntil(this.unsubscribe$) ) .subscribe((projectUser_from_ws_subscription) => { - console.log('[WS-REQUESTS-LIST] $UBSC TO WS PROJECT-USERS (listenTo) projectUser_from_ws_subscription', projectUser_from_ws_subscription); + // console.log('[WS-REQUESTS-LIST] $UBSC TO WS PROJECT-USERS (listenTo) projectUser_from_ws_subscription', projectUser_from_ws_subscription); // this.logger.log('WS-REQUESTS-LIST PROJECT-USERS ', projectuser); if (projectuser['_id'] === projectUser_from_ws_subscription['_id']) { @@ -686,11 +687,11 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit if (departmentsCount > 1) { // console.log('»»» »»» DEPTS PAGE - DEPT)', dept); if (dept && dept.default !== true) { - console.log('[DEPTS] - GET DEPTS - DEPT NAME: ', dept.name, 'dept object', dept); + // console.log('[DEPTS] - GET DEPTS - DEPT NAME: ', dept.name, 'dept object', dept); if (!dept.id_group || dept.id_group === undefined) { count = count + 1; - console.log('[WS-REQUESTS-LIST] display all teammates') + // console.log('[WS-REQUESTS-LIST] display all teammates') } } } else if (departmentsCount === 1) { @@ -698,12 +699,12 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit if (!dept.id_group || dept.id_group === undefined) { - console.log('[WS-REQUESTS-LIST] (only default dept) ') + // console.log('[WS-REQUESTS-LIST] (only default dept) ') count = count + 1; } } }); - console.log('[DEPTS] - COUNT OF DEPT WITHOUT GROUP', count); + // console.log('[DEPTS] - COUNT OF DEPT WITHOUT GROUP', count); if (count > 0) { // this.DISPLAY_ALL_TEAMMATES_TO_AGENT = true; this.filteredProjectUsersArray = projectUserArray @@ -723,16 +724,16 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit } getGroupsByProjectId(projectUserArray) { - console.log('[WS-REQUESTS-LIST] - GROUPS - ALL PROJECT USERS ', projectUserArray) + // console.log('[WS-REQUESTS-LIST] - GROUPS - ALL PROJECT USERS ', projectUserArray) this.groupService.getGroupsByProjectId().subscribe((groups: any) => { - console.log('[WS-REQUESTS-LIST] - GROUPS GET BY PROJECT ID', groups); + // console.log('[WS-REQUESTS-LIST] - GROUPS GET BY PROJECT ID', groups); const memberOfAllGroups = [] if (groups) { this.groupsList = groups; // this.logger.log('[DEPT-EDIT-ADD] - GROUP ID SELECTED', this.selectedGroupId); this.groupsList.forEach(group => { - console.log('[WS-REQUESTS-LIST] - GROUP ', group); + // console.log('[WS-REQUESTS-LIST] - GROUP ', group); if (group.members.includes(this.currentUserID)) { // console.log('[WS-REQUESTS-LIST] - GROUPS MEMBERS INCLUDES CURRENT USER'); @@ -740,18 +741,18 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit memberOfAllGroups.indexOf(member) === -1 ? memberOfAllGroups.push(member) : this.logger.log("PUSH MEMBER ID IN memberOfAllGroups : This item already exists"); }); - console.log('[WS-REQUESTS-LIST] - ARRAY OF ALL MEMBERS OF GROUPS ', memberOfAllGroups); + // console.log('[WS-REQUESTS-LIST] - ARRAY OF ALL MEMBERS OF GROUPS ', memberOfAllGroups); this.filteredProjectUsersArray = projectUserArray.filter(projectUser => memberOfAllGroups.includes(projectUser.id_user._id)) - console.log('[WS-REQUESTS-LIST] - PROJECT USER FILTERED FOR MEMBERS OF THE GROUPS IN WICH IS PRESENT THE CURRENT USER ', this.filteredProjectUsersArray); + // console.log('[WS-REQUESTS-LIST] - PROJECT USER FILTERED FOR MEMBERS OF THE GROUPS IN WICH IS PRESENT THE CURRENT USER ', this.filteredProjectUsersArray); } else { - console.log('[WS-REQUESTS-LIST] - GROUPS MEMBERS NOT INCLUDES CURRENT USER - SHOW ALL TEAMMATES'); + // console.log('[WS-REQUESTS-LIST] - GROUPS MEMBERS NOT INCLUDES CURRENT USER - SHOW ALL TEAMMATES'); this.filteredProjectUsersArray = projectUserArray } }); } else { - console.log('[WS-REQUESTS-LIST] - THE PROJECT NOT HAS GROUPS - SHOW ALL TEAMMATES'); + // console.log('[WS-REQUESTS-LIST] - THE PROJECT NOT HAS GROUPS - SHOW ALL TEAMMATES'); this.filteredProjectUsersArray = projectUserArray } }, (error) => { @@ -1104,7 +1105,7 @@ export class WsRequestsListComponent extends WsSharedComponent implements OnInit // DEPTS_LAZY: add this addDeptObject(wsrequests) { this.departmentService.getDeptsByProjectIdToPromise().then((_departments: any) => { - console.log('[WS-REQUESTS-LIST] - (DEPTS_LAZY) GET DEPTS BY PROJECT-ID toPromise', _departments); + // console.log('[WS-REQUESTS-LIST] - (DEPTS_LAZY) GET DEPTS BY PROJECT-ID toPromise', _departments); wsrequests.forEach(request => { if (request.department) { diff --git a/src/assets/css/demo.scss b/src/assets/css/demo.scss index 77fc84723581..874f6d7a1b88 100755 --- a/src/assets/css/demo.scss +++ b/src/assets/css/demo.scss @@ -715,7 +715,7 @@ my-app .main-panel .main-content .card { padding: 0px; display: inline-block; flex: 1 1 32px; - margin-left: 15px; + // margin-left: 15px; cursor: pointer; }