|
313 | 313 | v-b-tooltip.hover
|
314 | 314 | :title="$t('policy_violation.total')"
|
315 | 315 | >{{
|
316 |
| - showSuppressedViolations |
| 316 | + policyViolationsTotal |
| 317 | + /*showSuppressedViolations |
317 | 318 | ? policyViolationsTotal
|
318 |
| - : policyViolationsUnaudited |
| 319 | + : policyViolationsUnaudited*/ |
319 | 320 | }}</b-badge
|
320 | 321 | >
|
321 | 322 | <b-badge
|
322 | 323 | variant="tab-info"
|
323 | 324 | v-b-tooltip.hover
|
324 | 325 | :title="$t('policy_violation.infos')"
|
325 | 326 | >{{
|
326 |
| - showSuppressedViolations |
| 327 | + policyViolationsInfoTotal |
| 328 | + /*showSuppressedViolations |
327 | 329 | ? policyViolationsInfoTotal
|
328 |
| - : policyViolationsInfoUnaudited |
| 330 | + : policyViolationsInfoUnaudited*/ |
329 | 331 | }}</b-badge
|
330 | 332 | >
|
331 | 333 | <b-badge
|
332 | 334 | variant="tab-warn"
|
333 | 335 | v-b-tooltip.hover
|
334 | 336 | :title="$t('policy_violation.warns')"
|
335 | 337 | >{{
|
336 |
| - showSuppressedViolations |
| 338 | + policyViolationsWarnTotal |
| 339 | + /*showSuppressedViolations |
337 | 340 | ? policyViolationsWarnTotal
|
338 |
| - : policyViolationsWarnUnaudited |
| 341 | + : policyViolationsWarnUnaudited*/ |
339 | 342 | }}</b-badge
|
340 | 343 | >
|
341 | 344 | <b-badge
|
342 | 345 | variant="tab-fail"
|
343 | 346 | v-b-tooltip.hover
|
344 | 347 | :title="$t('policy_violation.fails')"
|
345 | 348 | >{{
|
346 |
| - showSuppressedViolations |
| 349 | + policyViolationsFailTotal |
| 350 | + /*showSuppressedViolations |
347 | 351 | ? policyViolationsFailTotal
|
348 |
| - : policyViolationsFailUnaudited |
| 352 | + : policyViolationsFailUnaudited*/ |
349 | 353 | }}</b-badge
|
350 | 354 | >
|
351 | 355 | </template>
|
@@ -451,11 +455,14 @@ export default {
|
451 | 455 | policyViolationsTotal: 0,
|
452 | 456 | policyViolationsUnaudited: 0,
|
453 | 457 | policyViolationsFailTotal: 0,
|
454 |
| - policyViolationsFailUnaudited: 0, |
| 458 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 459 | + // policyViolationsFailUnaudited: 0, |
455 | 460 | policyViolationsWarnTotal: 0,
|
456 |
| - policyViolationsWarnUnaudited: 0, |
| 461 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 462 | + // policyViolationsWarnUnaudited: 0, |
457 | 463 | policyViolationsInfoTotal: 0,
|
458 |
| - policyViolationsInfoUnaudited: 0, |
| 464 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 465 | + // policyViolationsInfoUnaudited: 0, |
459 | 466 | tabIndex: 0,
|
460 | 467 | };
|
461 | 468 | },
|
@@ -522,26 +529,29 @@ export default {
|
522 | 529 | this.project.metrics.policyViolationsFail,
|
523 | 530 | 0,
|
524 | 531 | );
|
525 |
| - this.policyViolationsFailUnaudited = common.valueWithDefault( |
526 |
| - this.project.metrics.policyViolationsFailUnaudited, |
527 |
| - 0, |
528 |
| - ); |
| 532 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 533 | + // this.policyViolationsFailUnaudited = common.valueWithDefault( |
| 534 | + // this.project.metrics.policyViolationsFailUnaudited, |
| 535 | + // 0, |
| 536 | + // ); |
529 | 537 | this.policyViolationsWarnTotal = common.valueWithDefault(
|
530 | 538 | this.project.metrics.policyViolationsWarn,
|
531 | 539 | 0,
|
532 | 540 | );
|
533 |
| - this.policyViolationsWarnUnaudited = common.valueWithDefault( |
534 |
| - this.project.metrics.policyViolationsWarnUnaudited, |
535 |
| - 0, |
536 |
| - ); |
| 541 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 542 | + // this.policyViolationsWarnUnaudited = common.valueWithDefault( |
| 543 | + // this.project.metrics.policyViolationsWarnUnaudited, |
| 544 | + // 0, |
| 545 | + // ); |
537 | 546 | this.policyViolationsInfoTotal = common.valueWithDefault(
|
538 | 547 | this.project.metrics.policyViolationsInfo,
|
539 | 548 | 0,
|
540 | 549 | );
|
541 |
| - this.policyViolationsInfoUnaudited = common.valueWithDefault( |
542 |
| - this.project.metrics.policyViolationsInfoUnaudited, |
543 |
| - 0, |
544 |
| - ); |
| 550 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 551 | + // this.policyViolationsInfoUnaudited = common.valueWithDefault( |
| 552 | + // this.project.metrics.policyViolationsInfoUnaudited, |
| 553 | + // 0, |
| 554 | + // ); |
545 | 555 | EventBus.$emit('addCrumb', this.projectLabel);
|
546 | 556 | this.$title = this.projectLabel;
|
547 | 557 | });
|
|
0 commit comments