|
65 | 65 | //{value: 'AGE', text: this.$t('message.age')}, |
66 | 66 | //{value: 'ANALYZER', text: this.$t('message.analyzer')}, |
67 | 67 | //{value: 'BOM', text: this.$t('message.bom')}, |
| 68 | + {value: 'SEVERITY', text: this.$t('message.severity')}, |
68 | 69 | {value: 'COORDINATES', text: this.$t('message.coordinates')}, |
69 | 70 | {value: 'LICENSE', text: this.$t('message.license')}, |
70 | 71 | {value: 'LICENSE_GROUP', text: this.$t('message.license_group')}, |
|
101 | 102 | return true; |
102 | 103 | case 'BOM': |
103 | 104 | return true; |
| 105 | + case 'SEVERITY': |
| 106 | + return true; |
104 | 107 | case 'COORDINATES': |
105 | 108 | return false; |
106 | 109 | case 'LICENSE': |
|
140 | 143 | case 'BOM': |
141 | 144 | this.operators = this.objectOperators; |
142 | 145 | break; |
| 146 | + case 'SEVERITY': |
| 147 | + this.operators = this.objectOperators; |
| 148 | + this.populateSeverity() |
| 149 | + break; |
143 | 150 | case 'COORDINATES': |
144 | 151 | this.operators = this.regexOperators; |
145 | 152 | break; |
|
255 | 262 | this.$toastr.w(this.$t('condition.unsuccessful_action')); |
256 | 263 | } |
257 | 264 | }); |
| 265 | + }, |
| 266 | + populateSeverity: function () { |
| 267 | + this.possibleValues = [ |
| 268 | + {value: "CRITICAL", text: this.$t('severity.critical')}, |
| 269 | + {value: "HIGH", text: this.$t('severity.high')}, |
| 270 | + {value: "MEDIUM", text: this.$t('severity.medium')}, |
| 271 | + {value: "LOW", text: this.$t('severity.low')}, |
| 272 | + {value: "INFO", text: this.$t('severity.info')}, |
| 273 | + {value: "UNASSIGNED", text: this.$t('severity.unassigned')} |
| 274 | + ]; |
258 | 275 | } |
259 | 276 | } |
260 | 277 | } |
|
0 commit comments