From debc1d3c2a55646940aff0f51341af70edf7898c Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Wed, 13 Jan 2021 17:07:14 +0100 Subject: [PATCH] Trying to fix multicast problem --- .../manage-roles-edit.component.html | 16 ++++++++-------- .../paginated-entities.component.html | 15 +++++++++++---- .../paginated-entities.component.ts | 10 +++++----- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/roles/manage-roles-edit/manage-roles-edit.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/roles/manage-roles-edit/manage-roles-edit.component.html index cd1e9b0b9..bdbf7da47 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/roles/manage-roles-edit/manage-roles-edit.component.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/security/roles/manage-roles-edit/manage-roles-edit.component.html @@ -166,14 +166,14 @@ [id]="'userParentSection'" #userParentSection> - - + +
Loading...
- + - + - +
{{user.user_id}} + ngbTooltip="{{parentUser.id}}">{{parentUser.user_id}} {{user.full_name}}{{parentUser.full_name}}
@@ -205,8 +205,8 @@ [displayControlsIfSinglePage]="false" #userSection> - - + +
Loading...
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.html b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.html index 879ff98bc..06622055e 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.html +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.html @@ -15,10 +15,17 @@ ~ specific language governing permissions and limitations ~ under the License. --> + + + - -
-
+ + +
- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.ts b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.ts index 6239e88d2..1e0c22d45 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.ts +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/archiva-web/src/app/modules/shared/paginated-entities/paginated-entities.component.ts @@ -27,7 +27,7 @@ import { pluck, refCount, startWith, - switchMap + switchMap, tap } from "rxjs/operators"; import {EntityService} from "@app/model/entity-service"; import {FieldToggle} from "@app/model/field-toggle"; @@ -187,11 +187,11 @@ export class PaginatedEntitiesComponent implements OnInit, FieldToggle, After multicast(new Subject()), refCount() ); - this.total$ = source.pipe(filter(val=>val.hasValue()),map(val=>val.value), - pluck('pagination', 'total_count')); - this.multiplePages$ = source.pipe(filter(val => val.hasValue()), + this.total$ = source.pipe(tap((el)=>console.log("Total pipe "+this.id+": "+typeof(el)+" - "+JSON.stringify(el))),filter(val=>val.hasValue()),map(val=>val.value), + pluck('pagination', 'total_count'),tap((el)=>console.log("Total end "+this.id+" - "+el))); + this.multiplePages$ = source.pipe(tap((el)=>console.log("Multipage pipe "+this.id+": "+typeof(el)+" - "+JSON.stringify(el))),filter(val => val.hasValue()), map(val => val.value.pagination.total_count > val.value.pagination.limit)); - this.items$ = source; + this.items$ = source.pipe(tap((el)=>console.log("Item pipe "+this.id+": "+typeof(el)+" - "+JSON.stringify(el)))); } search(terms: string) { -- 2.39.5