@@ -390,12 +390,12 @@ export class BugFilerClass extends React.Component {
390
390
comment,
391
391
isIntermittent,
392
392
isSecurityIssue,
393
- launchConfirmFailure,
394
393
checkedLogLinks,
395
394
regressedBy,
396
395
seeAlso,
397
396
keywords,
398
397
crashSignatures,
398
+ launchConfirmFailure,
399
399
} = this . state ;
400
400
const { toggle, successCallback, notify, suggestions } = this . props ;
401
401
@@ -475,6 +475,7 @@ export class BugFilerClass extends React.Component {
475
475
) {
476
476
priority = '--' ;
477
477
}
478
+
478
479
if ( launchConfirmFailure && keywords . includes ( 'intermittent-testcase' ) ) {
479
480
// Launch confirm failure task
480
481
this . handleConfirmFailure ( ) ;
@@ -614,7 +615,6 @@ export class BugFilerClass extends React.Component {
614
615
parsedLog,
615
616
fullLog,
616
617
reftestUrl,
617
- selectedJob,
618
618
currentRepo,
619
619
} = this . props ;
620
620
const {
@@ -635,18 +635,6 @@ export class BugFilerClass extends React.Component {
635
635
const crashSignatures = getCrashSignatures ( suggestion ) ;
636
636
const unhelpfulSummaryReason = this . getUnhelpfulSummaryReason ( summary ) ;
637
637
638
- let launchCF = launchConfirmFailure ;
639
-
640
- if (
641
- [ 'autoland' , 'mozilla-central' , 'try' ] . includes ( currentRepo . name ) &&
642
- ! selectedJob . job_type_name . toLowerCase ( ) . includes ( 'backlog' ) &&
643
- ! selectedJob . job_type_name . toLowerCase ( ) . includes ( '-verify' )
644
- ) {
645
- // no-op
646
- } else {
647
- launchCF = false ;
648
- }
649
-
650
638
return (
651
639
< div >
652
640
< Modal isOpen = { isOpen } toggle = { toggle } size = "lg" >
@@ -933,20 +921,24 @@ export class BugFilerClass extends React.Component {
933
921
Report this as a security issue
934
922
</ Label >
935
923
</ div >
936
- < div className = "d-inline-flex mt-2 ml-5" >
937
- < Label >
938
- < Input
939
- type = "checkbox"
940
- checked = { launchCF }
941
- onChange = { ( ) =>
942
- this . setState ( {
943
- launchConfirmFailure : ! launchCF ,
944
- } )
945
- }
946
- />
947
- Launch the Confirm Failures task at bug submission
948
- </ Label >
949
- </ div >
924
+ { [ 'autoland' , 'mozilla-central' , 'try' ] . includes (
925
+ currentRepo . name ,
926
+ ) && (
927
+ < div className = "d-inline-flex mt-2 ml-5" >
928
+ < Label >
929
+ < Input
930
+ type = "checkbox"
931
+ checked = { launchConfirmFailure }
932
+ onChange = { ( ) =>
933
+ this . setState ( {
934
+ launchConfirmFailure : ! launchConfirmFailure ,
935
+ } )
936
+ }
937
+ />
938
+ Launch the Confirm Failures task at bug submission
939
+ </ Label >
940
+ </ div >
941
+ ) }
950
942
{ ! ! crashSignatures . length && (
951
943
< div >
952
944
< Label for = "signature-input" > Signature:</ Label >
0 commit comments