fix help mode when is not dialog open

This commit is contained in:
Dan Percic 2022-07-27 17:43:55 +03:00
parent 0fe38910be
commit 62654db49d
3 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ import { HelpModeService } from '../index';
templateUrl: './help-button.component.html',
})
export class HelpButtonComponent implements OnInit, OnDestroy {
@Input() dialogButton = true;
@Input() dialogButton = false;
@Input() helpButtonKey?: string;
constructor(private readonly _helpModeService: HelpModeService) {}

View File

@ -61,8 +61,8 @@
[icon]="config.icon"
[id]="config.id"
[iqserHelpMode]="config.helpModeKey"
[tooltipPosition]="'below'"
[tooltip]="config.label"
tooltipPosition="below"
></iqser-circle-button>
</ng-container>
@ -73,10 +73,10 @@
(action)="closeAction.emit()"
*ngIf="showCloseButton"
[class.ml-6]="actionConfigs"
[icon]="'iqser:close'"
[iqserHelpMode]="'edit_dossier_in_dossier'"
[tooltipPosition]="'below'"
[tooltip]="'common.close' | translate"
icon="iqser:close"
iqserHelpMode="edit_dossier_in_dossier"
tooltipPosition="below"
></iqser-circle-button>
</div>
</div>

View File

@ -1,8 +1,8 @@
<button
(click)="scroll(buttonType.top)"
[hidden]="(showScrollUp$ | async) === false"
[iqserHelpMode]="helpModeKey + '_list'"
class="scroll-button top pointer"
iqserHelpMode="{{ helpModeKey }}_list"
id="scroll-up"
>
<mat-icon svgIcon="iqser:arrow-down-o"></mat-icon>
@ -11,8 +11,8 @@
<button
(click)="scroll(buttonType.bottom)"
[hidden]="(showScrollDown$ | async) === false"
[iqserHelpMode]="helpModeKey + '_list'"
class="scroll-button bottom pointer"
iqserHelpMode="{{ helpModeKey }}_list"
id="scroll-down"
>
<mat-icon svgIcon="iqser:arrow-down-o"></mat-icon>