forked from hazza/dspace-angular
97732 ContextHelpToggleComponent: added typedoc and removed unnecessary dependency
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||||
import { ContextHelpService } from '../../shared/context-help.service';
|
import { ContextHelpService } from '../../shared/context-help.service';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
|
||||||
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
|
import { Observable, Subscription, BehaviorSubject } from 'rxjs';
|
||||||
import { combineLatest } from 'rxjs';
|
import { combineLatest } from 'rxjs';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renders a "context help toggle" button that toggles the visibility of tooltip buttons on the page.
|
||||||
|
* If there are no tooltip buttons available on the current page, the toggle is unclickable.
|
||||||
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-context-help-toggle',
|
selector: 'ds-context-help-toggle',
|
||||||
templateUrl: './context-help-toggle.component.html',
|
templateUrl: './context-help-toggle.component.html',
|
||||||
@@ -14,7 +17,6 @@ export class ContextHelpToggleComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private contextHelpService: ContextHelpService,
|
private contextHelpService: ContextHelpService,
|
||||||
private translateService: TranslateService
|
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
private clickEvents: BehaviorSubject<null> = new BehaviorSubject(null);
|
private clickEvents: BehaviorSubject<null> = new BehaviorSubject(null);
|
||||||
|
Reference in New Issue
Block a user