Enhance resetFilters method to include client input parameter and update template button accordingly
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details

pull/22/head
Lucas Lara García 2025-05-08 14:13:11 +02:00
parent 28336603ad
commit 5777be9417
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
</div>
<div class="images-button-row">
<button class="action-button" (click)="resetFilters(commandSearchInput, commandStatusInput)"
<button class="action-button" (click)="resetFilters(commandSearchInput, commandStatusInput, commandClientInput)"
joyrideStep="resetFiltersStep" text="{{ 'resetFiltersStepText' | translate }}">
{{ 'resetFilters' | translate }}
</button>

View File

@ -262,10 +262,11 @@ export class TaskLogsComponent implements OnInit {
}
resetFilters(clientSearchCommandInput: any, clientSearchStatusInput: any) {
resetFilters(clientSearchCommandInput: any, clientSearchStatusInput: any, clientSearchClientInput: any) {
this.loading = true;
clientSearchCommandInput.value = null;
clientSearchStatusInput.value = null;
clientSearchClientInput.value = null;
this.filters = {};
this.loadTraces();
}