diff --git a/src/app/components/shared/overlay/active-user/active-user.component.ts b/src/app/components/shared/overlay/active-user/active-user.component.ts index cf06c3a1732144418acced97807efbc4ebdb7251..b11e6ba9d8de461fc0446e9def405611cb79ff4a 100644 --- a/src/app/components/shared/overlay/active-user/active-user.component.ts +++ b/src/app/components/shared/overlay/active-user/active-user.component.ts @@ -16,6 +16,7 @@ export class ActiveUserComponent implements OnInit,OnDestroy{ @Input() backgroundColor: string; @Input() left: number; @Input() top: number; + @Input() alwaysShowInHeader: boolean; @ViewChild('divElement') elem: HTMLElement; activeUser=0; onDestroyListener: (() => void)[]=[]; @@ -30,7 +31,7 @@ export class ActiveUserComponent implements OnInit,OnDestroy{ } ngOnInit(): void{ - if(this.deviceType&&this.deviceType==='mobile'){ + if(this.deviceType&&(this.deviceType==='mobile'||this.alwaysShowInHeader)){ this.headerService.toggleCurrentUserActivity(true); this.onDestroyListener.push(()=>this.headerService.toggleCurrentUserActivity(false)); this.onValueChangeListener.push(num=>this.headerService.setCurrentUserActivity(num)); diff --git a/src/app/components/shared/tag-cloud/tag-cloud.component.html b/src/app/components/shared/tag-cloud/tag-cloud.component.html index d9c02c754ef0e66571e3fe232902d212454864a1..e8e27e6d8bfec5089f452aa426a80d8dda8640a2 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.component.html +++ b/src/app/components/shared/tag-cloud/tag-cloud.component.html @@ -28,7 +28,7 @@ [zoomOnHover]="zoomOnHoverOptions" [realignOnResize]="false"> </angular-tag-cloud> - <app-active-user [room]="this.room" [top]="120"></app-active-user> + <app-active-user *ngIf="room" [alwaysShowInHeader]="true" [room]="this.room" [top]="120"></app-active-user> </ars-fill> <button *ngIf="((user && user.role > 0) || (room && !room.questionsBlocked)) && drawer && !drawer.opened" mat-fab