Skip to content

Commit e546c15

Browse files
committed
provide path as argument
1 parent e904403 commit e546c15

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

projects/fusio-sdk/src/lib/component/search/search.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<input type="text" class="form-control" name="search" [(ngModel)]="searchTerm" placeholder="Search i.e. {{placeholder}}" />
66
<button *ngIf="newClick.observed" type="button" (click)="doCreateClick()" class="btn btn-primary fusio-btn-create"><i class="bi bi-plus"></i></button>
77
<button *ngFor="let button of buttons" type="button" [routerLink]="button.routerLink" class="btn btn-secondary"><i class="bi {{button.icon}}"></i></button>
8-
<button *ngIf="helpPath" type="button" (click)="showHelp()" class="btn btn-secondary fusio-btn-help"><i class="bi bi-question"></i></button>
8+
<button *ngIf="helpPath" type="button" (click)="showHelp(helpPath)" class="btn btn-secondary fusio-btn-help"><i class="bi bi-question"></i></button>
99
</div>
1010
</form>
1111
</div>

projects/fusio-sdk/src/lib/component/search/search.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@ export class SearchComponent implements OnInit {
4040
this.newClick.emit();
4141
}
4242

43-
showHelp() {
44-
if (!this.helpPath) {
45-
return;
46-
}
47-
48-
this.help.showDialog(this.helpPath);
43+
showHelp(path: string) {
44+
this.help.showDialog(path);
4945
}
5046

5147
}

0 commit comments

Comments
 (0)