File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 547547 "is" : " is" ,
548548 "is_not" : " is not" ,
549549 "matches" : " matches" ,
550- "no_match" : " does not match"
550+ "no_match" : " does not match" ,
551+ "contains_any" : " contains any" ,
552+ "contains_all" : " contains all"
551553 },
552554 "policy_violation" : {
553555 "fails" : " Violation Failures" ,
Original file line number Diff line number Diff line change 7373 {value: ' PACKAGE_URL' , text: this .$t (' message.package_url' )},
7474 {value: ' CPE' , text: this .$t (' message.cpe_full' )},
7575 {value: ' SWID_TAGID' , text: this .$t (' message.swid_tagid' )},
76- {value: ' VERSION' , text: this .$t (' message.version' )}
76+ {value: ' VERSION' , text: this .$t (' message.version' )},
77+ {value: ' CWE' , text: this .$t (' message.cwe' )}
7778 ],
7879 objectOperators: [
7980 {value: ' IS' , text: this .$t (' operator.is' )},
9192 {value: ' NUMERIC_GREATER_THAN_OR_EQUAL' , text: ' ≥' },
9293 {value: ' NUMERIC_LESSER_THAN_OR_EQUAL' , text: ' ≤' }
9394 ],
95+ listOperators: [
96+ {value: ' CONTAINS_ANY' , text: this .$t (' operator.contains_any' )},
97+ {value: ' CONTAINS_ALL' , text: this .$t (' operator.contains_all' )}
98+ ],
9499 operators: [],
95100 possibleValues: []
96101 }
120125 return false ;
121126 case ' VERSION' :
122127 return false ;
128+ case ' CWE' :
129+ return false ;
123130 default :
124131 return false ;
125132 }
174181 case ' VERSION' :
175182 this .operators = this .numericOperators ;
176183 break ;
184+ case ' CWE' :
185+ this .operators = [... this .listOperators , ... this .objectOperators ];
186+ break ;
177187 default :
178188 this .operators = [];
179189 }
You can’t perform that action at this time.
0 commit comments