Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the search functionality issue. #2970

Merged
merged 7 commits into from
Jan 10, 2025
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
groupStyle="width: 250px;"
[placeholder]="'alert.group-converge.name' | i18n"
[(value)]="search"
(valueChange)="loadGroupConvergeTable()"
(valueChange)="onFilterChange()"
/>
</ng-template>
</app-toolbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,4 +307,8 @@ export class AlertGroupConvergeComponent implements OnInit {
);
}
}
onFilterChange(): void {
this.pageIndex = 1;
this.loadGroupConvergeTable();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
groupStyle="width: 250px;"
[placeholder]="'alert.inhibit.name' | i18n"
[(value)]="search"
(valueChange)="loadInhibitTable()"
(valueChange)="onFilterChange()"
/>
</ng-template>
</app-toolbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,8 @@ export class AlertInhibitComponent implements OnInit {
);
}
}
onFilterChange(): void {
this.pageIndex = 1;
this.loadInhibitTable();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
groupStyle="width: 250px;"
[placeholder]="'alert.setting.search' | i18n"
[(value)]="search"
(keydown.enter)="loadAlertDefineTable()"
(keydown.enter)="onFilterChange()"
/>
</ng-template>
</app-toolbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1170,4 +1170,8 @@ export class AlertSettingComponent implements OnInit {
});
this.isConnectModalVisible = true;
}
onFilterChange(): void {
this.pageIndex = 1;
this.loadAlertDefineTable();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
groupStyle="width: 250px;"
[placeholder]="'alert.silence.name' | i18n"
[(value)]="search"
(valueChange)="loadAlertSilenceTable()"
(valueChange)="onFilterChange()"
/>
</ng-template>
</app-toolbar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,4 +341,8 @@ export class AlertSilenceComponent implements OnInit {
);
}
}
onFilterChange(): void {
this.pageIndex = 1;
this.loadAlertSilenceTable();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export class MonitorListComponent implements OnInit, OnDestroy {

onFilterSearchMonitors() {
this.tableLoading = true;
this.pageIndex = 1;
let filter$ = this.monitorSvc
.searchMonitors(this.app, this.labels, this.filterContent, this.filterStatus, this.pageIndex - 1, this.pageSize)
.subscribe(
Expand Down
Loading