зеркало из https://github.com/mozilla/treeherder.git
Bug 1562852 - fix Perherder Alerts search input (#5127)
change navigatePage function to update state and params and fetch new alert summaries instead of using angular state.go since that causes the page to re-mount on navigation
This commit is contained in:
Родитель
42ce2e8002
Коммит
49c5552891
|
@ -87,12 +87,8 @@ export class AlertsView extends React.Component {
|
|||
};
|
||||
|
||||
navigatePage = page => {
|
||||
const { framework, status } = this.state;
|
||||
this.props.$state.go('alerts', {
|
||||
page,
|
||||
framework: framework.id,
|
||||
status: summaryStatusMap[status],
|
||||
});
|
||||
this.setState({ page }, this.fetchAlertSummaries);
|
||||
this.props.validated.updateParams({ page });
|
||||
};
|
||||
|
||||
getCurrentPages = () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче