зеркало из 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.
|
||||
*/
|
||||
shouldComponentUpdate(nextProps, nextState) {
|
||||
const { visible, resultStatus, failureClassificationId } = this.props;
|
||||
const {
|
||||
visible,
|
||||
resultStatus,
|
||||
failureClassificationId,
|
||||
intermittent,
|
||||
} = this.props;
|
||||
const { isSelected, isRunnableSelected } = this.state;
|
||||
|
||||
return (
|
||||
visible !== nextProps.visible ||
|
||||
resultStatus !== nextProps.resultStatus ||
|
||||
failureClassificationId !== nextProps.failureClassificationId ||
|
||||
intermittent !== nextProps.intermittent ||
|
||||
isSelected !== nextState.isSelected ||
|
||||
isRunnableSelected !== nextState.isRunnableSelected
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче