зеркало из https://github.com/mozilla/treeherder.git
Bug 1864125 - Dynamically update intermittent icon when other sucessful job appears.
This commit is contained in:
Родитель
4816f675f7
Коммит
e1de39073c
|
@ -39,13 +39,19 @@ export default class JobButtonComponent extends React.Component {
|
||||||
* shallow compare would allow.
|
* shallow compare would allow.
|
||||||
*/
|
*/
|
||||||
shouldComponentUpdate(nextProps, nextState) {
|
shouldComponentUpdate(nextProps, nextState) {
|
||||||
const { visible, resultStatus, failureClassificationId } = this.props;
|
const {
|
||||||
|
visible,
|
||||||
|
resultStatus,
|
||||||
|
failureClassificationId,
|
||||||
|
intermittent,
|
||||||
|
} = this.props;
|
||||||
const { isSelected, isRunnableSelected } = this.state;
|
const { isSelected, isRunnableSelected } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
visible !== nextProps.visible ||
|
visible !== nextProps.visible ||
|
||||||
resultStatus !== nextProps.resultStatus ||
|
resultStatus !== nextProps.resultStatus ||
|
||||||
failureClassificationId !== nextProps.failureClassificationId ||
|
failureClassificationId !== nextProps.failureClassificationId ||
|
||||||
|
intermittent !== nextProps.intermittent ||
|
||||||
isSelected !== nextState.isSelected ||
|
isSelected !== nextState.isSelected ||
|
||||||
isRunnableSelected !== nextState.isRunnableSelected
|
isRunnableSelected !== nextState.isRunnableSelected
|
||||||
);
|
);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче