Skip to content

Commit

Permalink
Added prompt filtering on focus
Browse files Browse the repository at this point in the history
Closes [Ticket: #8]
  • Loading branch information
iTacco committed May 9, 2023
1 parent 7870eee commit ed9ec5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/admin/gpt-chat/gpt-chat.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<mat-label></mat-label>
<input
placeholder="{{ 'gpt-chat.prompt-label' | translate }}"
autofocus
type="text"
aria-label="Prompt"
matInput
[matAutocomplete]="auto"
[(ngModel)]="searchTerm"
(focus)="filterPrompts()"
(input)="filterPrompts()" />
<mat-autocomplete #auto="matAutocomplete">
<mat-option
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<mat-label></mat-label>
<input
placeholder="{{ 'gpt-chat.prompt-label' | translate }}"
autofocus
type="text"
aria-label="Prompt"
matInput
[matAutocomplete]="auto"
[(ngModel)]="searchTerm"
(focus)="filterPrompts()"
(input)="filterPrompts()" />
<mat-autocomplete #auto="matAutocomplete">
<mat-option
Expand Down

0 comments on commit ed9ec5c

Please sign in to comment.