@@ -164,7 +164,7 @@ export class TestFilterComponent implements OnInit {
164164 this . initialiseIfDefined ( Constants . FILTER_TYPE . COMMUNITY , { name : Constants . FILTER_TYPE . COMMUNITY , textField : 'sname' , loader : this . loadCommunitiesFn , clearItems : new EventEmitter ( ) , replaceSelectedItems : new EventEmitter ( ) , showAsFormControl : true } )
165165 this . initialiseIfDefined ( Constants . FILTER_TYPE . ORGANISATION , { name : Constants . FILTER_TYPE . ORGANISATION , textField : 'sname' , loader : this . loadOrganisationsFn , clearItems : new EventEmitter ( ) , replaceSelectedItems : new EventEmitter ( ) , showAsFormControl : true } )
166166 this . initialiseIfDefined ( Constants . FILTER_TYPE . SYSTEM , { name : Constants . FILTER_TYPE . SYSTEM , textField : 'sname' , loader : this . loadSystemsFn , clearItems : new EventEmitter ( ) , replaceSelectedItems : new EventEmitter ( ) , showAsFormControl : true } )
167- this . initialiseIfDefined ( Constants . FILTER_TYPE . RESULT , { name : Constants . FILTER_TYPE . RESULT , textField : 'label' , loader : this . loadTestResults . bind ( this ) , clearItems : new EventEmitter ( ) , replaceSelectedItems : new EventEmitter ( ) , showAsFormControl : true } )
167+ this . initialiseIfDefined ( Constants . FILTER_TYPE . RESULT , { name : Constants . FILTER_TYPE . RESULT , textField : 'label' , iconField : 'icon' , loader : this . loadTestResults . bind ( this ) , clearItems : new EventEmitter ( ) , replaceSelectedItems : new EventEmitter ( ) , showAsFormControl : true } )
168168 if ( this . commands ) {
169169 this . commands . subscribe ( ( command ) => {
170170 this . handleCommand ( command )
@@ -669,9 +669,9 @@ export class TestFilterComponent implements OnInit {
669669
670670 private loadTestResults ( ) : Observable < IdLabel [ ] > {
671671 return of ( [
672- { id : 0 , label : "Success" } ,
673- { id : 1 , label : "Failure" } ,
674- { id : 2 , label : "Incomplete" }
672+ { id : 0 , label : "Success" , icon : this . dataService . iconForTestResult ( Constants . TEST_CASE_RESULT . SUCCESS ) } ,
673+ { id : 1 , label : "Failure" , icon : this . dataService . iconForTestResult ( Constants . TEST_CASE_RESULT . FAILURE ) } ,
674+ { id : 2 , label : "Incomplete" , icon : this . dataService . iconForTestResult ( Constants . TEST_CASE_RESULT . UNDEFINED ) }
675675 ] )
676676 }
677677
0 commit comments