mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
97732 Context help toggle button only appears when there is at least one element with a tooltip on the page
This commit is contained in:
@@ -54,9 +54,9 @@ export class ContextHelpService {
|
||||
/**
|
||||
* Observable that yields true iff there are currently no context help entries in the store.
|
||||
*/
|
||||
contextHelpEmpty$(): Observable<boolean> {
|
||||
tooltipCount$(): Observable<number> {
|
||||
return this.store.pipe(select(allContextHelpSelector))
|
||||
.pipe(map((models: ContextHelpModels) => Object.keys(models).length === 0));
|
||||
.pipe(map((models: ContextHelpModels) => Object.keys(models).length));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user