97732 ContextHelpToggleComponent added

This commit is contained in:
Koen Pauwels
2023-01-04 17:02:39 +01:00
parent 5ba45cb0fa
commit e16a3edf78
9 changed files with 71 additions and 3 deletions

View File

@@ -69,10 +69,11 @@ export class ContextHelpWrapperComponent implements OnInit, AfterViewInit, OnDes
ngOnInit() {
this.shouldShowIcon$ = this.contextHelpService.shouldShowIcons$();
this.subs.push(this.shouldShowIcon$.subscribe());
}
ngAfterViewInit() {
this.subs = [
this.subs.push(
this.contextHelpService.getContextHelp$(this.id)
.pipe(hasValueOperator())
.subscribe((ch: ContextHelp) => {
@@ -90,7 +91,7 @@ export class ContextHelpWrapperComponent implements OnInit, AfterViewInit, OnDes
this.tooltip.hidden.subscribe(() => {
this.contextHelpService.hideTooltip(this.id);
})
];
);
}
ngOnDestroy() {