Skip to content
Snippets Groups Projects
Commit 9f5be78d authored by Lukas Haase's avatar Lukas Haase
Browse files

always show topiccloud usercounter in header

parent 6eba6741
No related merge requests found
...@@ -16,6 +16,7 @@ export class ActiveUserComponent implements OnInit,OnDestroy{ ...@@ -16,6 +16,7 @@ export class ActiveUserComponent implements OnInit,OnDestroy{
@Input() backgroundColor: string; @Input() backgroundColor: string;
@Input() left: number; @Input() left: number;
@Input() top: number; @Input() top: number;
@Input() alwaysShowInHeader: boolean;
@ViewChild('divElement') elem: HTMLElement; @ViewChild('divElement') elem: HTMLElement;
activeUser=0; activeUser=0;
onDestroyListener: (() => void)[]=[]; onDestroyListener: (() => void)[]=[];
...@@ -30,7 +31,7 @@ export class ActiveUserComponent implements OnInit,OnDestroy{ ...@@ -30,7 +31,7 @@ export class ActiveUserComponent implements OnInit,OnDestroy{
} }
ngOnInit(): void{ ngOnInit(): void{
if(this.deviceType&&this.deviceType==='mobile'){ if(this.deviceType&&(this.deviceType==='mobile'||this.alwaysShowInHeader)){
this.headerService.toggleCurrentUserActivity(true); this.headerService.toggleCurrentUserActivity(true);
this.onDestroyListener.push(()=>this.headerService.toggleCurrentUserActivity(false)); this.onDestroyListener.push(()=>this.headerService.toggleCurrentUserActivity(false));
this.onValueChangeListener.push(num=>this.headerService.setCurrentUserActivity(num)); this.onValueChangeListener.push(num=>this.headerService.setCurrentUserActivity(num));
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
[zoomOnHover]="zoomOnHoverOptions" [zoomOnHover]="zoomOnHoverOptions"
[realignOnResize]="false"> [realignOnResize]="false">
</angular-tag-cloud> </angular-tag-cloud>
<app-active-user *ngIf="room" [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> </ars-fill>
<button *ngIf="((user && user.role > 0) || (room && !room.questionsBlocked)) && drawer && !drawer.opened" <button *ngIf="((user && user.role > 0) || (room && !room.questionsBlocked)) && drawer && !drawer.opened"
mat-fab mat-fab
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment