Refactor command filter to use command ID instead of name in ClientTaskLogs component
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
parent
53d1191ddf
commit
b65d715443
|
@ -47,16 +47,6 @@
|
|||
<mat-icon>close</mat-icon>
|
||||
</button>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field appearance="fill" class="date-range-picker">
|
||||
<mat-label>{{ 'Filtrar por fecha' | translate }}</mat-label>
|
||||
<mat-date-range-input [formControl]="dateRange" [rangePicker]="picker">
|
||||
<input matStartDate placeholder="{{ 'Desde' | translate }}">
|
||||
<input matEndDate placeholder="{{ 'Hasta' | translate }}">
|
||||
</mat-date-range-input>
|
||||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
||||
<mat-date-range-picker #picker></mat-date-range-picker>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
|
||||
<app-loading [isLoading]="loading"></app-loading>
|
||||
|
|
|
@ -135,7 +135,7 @@ export class ClientTaskLogsComponent implements OnInit {
|
|||
}
|
||||
|
||||
onOptionCommandSelected(selectedCommand: any): void {
|
||||
this.filters['command'] = selectedCommand.name;
|
||||
this.filters['command'] = selectedCommand.id;
|
||||
this.loadTraces();
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ export class ClientTaskLogsComponent implements OnInit {
|
|||
.set('itemsPerPage', this.itemsPerPage.toString());
|
||||
|
||||
if (this.filters['command']) {
|
||||
params = params.set('command.name', this.filters['command']);
|
||||
params = params.set('command.id', this.filters['command']);
|
||||
}
|
||||
|
||||
if (this.filters['status']) {
|
||||
|
|
Loading…
Reference in New Issue