97732 Context help button now disabled when there are no tooltips available on the page

This commit is contained in:
Koen Pauwels
2023-01-16 09:36:57 +01:00
parent 6bee69bc3f
commit bcbfafcb32
9 changed files with 99 additions and 32 deletions

View File

@@ -2,9 +2,11 @@
<a href="javascript:void(0);"
role="button"
(click)="onClick()"
[attr.aria-label]="'nav.context-help-toggle' | translate"
[title]="'nav.context-help-toggle' | translate"
[attr.aria-label]="((buttonDisabled$ | async) ? 'nav.context-help-toggle-disabled' : 'nav.context-help-toggle') | translate"
[title]="((buttonDisabled$ | async) ? 'nav.context-help-toggle-disabled' : 'nav.context-help-toggle') | translate"
>
<i class="fas fa-lg fa-fw fa-question-circle ds-context-help-toggle"></i>
<i class="fas fa-lg fa-fw fa-question-circle"
[class]="(buttonDisabled$ | async) ? 'ds-context-help-toggle-disabled' : 'ds-context-help-toggle-enabled'"
></i>
</a>
</div>