|
344 | 344 | v-b-tooltip.hover
|
345 | 345 | :title="$t('policy_violation.total')"
|
346 | 346 | >{{
|
347 |
| - showSuppressedViolations |
| 347 | + policyViolationsTotal |
| 348 | + /*showSuppressedViolations |
348 | 349 | ? policyViolationsTotal
|
349 |
| - : policyViolationsUnaudited |
| 350 | + : policyViolationsUnaudited*/ |
350 | 351 | }}</b-badge
|
351 | 352 | >
|
352 | 353 | <b-badge
|
353 | 354 | variant="tab-info"
|
354 | 355 | v-b-tooltip.hover
|
355 | 356 | :title="$t('policy_violation.infos')"
|
356 | 357 | >{{
|
357 |
| - showSuppressedViolations |
| 358 | + policyViolationsInfoTotal |
| 359 | + /*showSuppressedViolations |
358 | 360 | ? policyViolationsInfoTotal
|
359 |
| - : policyViolationsInfoUnaudited |
| 361 | + : policyViolationsInfoUnaudited*/ |
360 | 362 | }}</b-badge
|
361 | 363 | >
|
362 | 364 | <b-badge
|
363 | 365 | variant="tab-warn"
|
364 | 366 | v-b-tooltip.hover
|
365 | 367 | :title="$t('policy_violation.warns')"
|
366 | 368 | >{{
|
367 |
| - showSuppressedViolations |
| 369 | + policyViolationsWarnTotal |
| 370 | + /*showSuppressedViolations |
368 | 371 | ? policyViolationsWarnTotal
|
369 |
| - : policyViolationsWarnUnaudited |
| 372 | + : policyViolationsWarnUnaudited*/ |
370 | 373 | }}</b-badge
|
371 | 374 | >
|
372 | 375 | <b-badge
|
373 | 376 | variant="tab-fail"
|
374 | 377 | v-b-tooltip.hover
|
375 | 378 | :title="$t('policy_violation.fails')"
|
376 | 379 | >{{
|
377 |
| - showSuppressedViolations |
| 380 | + policyViolationsFailTotal |
| 381 | + /*showSuppressedViolations |
378 | 382 | ? policyViolationsFailTotal
|
379 |
| - : policyViolationsFailUnaudited |
| 383 | + : policyViolationsFailUnaudited*/ |
380 | 384 | }}</b-badge
|
381 | 385 | >
|
382 | 386 | </template>
|
@@ -485,11 +489,14 @@ export default {
|
485 | 489 | policyViolationsTotal: 0,
|
486 | 490 | policyViolationsUnaudited: 0,
|
487 | 491 | policyViolationsFailTotal: 0,
|
488 |
| - policyViolationsFailUnaudited: 0, |
| 492 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 493 | + // policyViolationsFailUnaudited: 0, |
489 | 494 | policyViolationsWarnTotal: 0,
|
490 |
| - policyViolationsWarnUnaudited: 0, |
| 495 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 496 | + // policyViolationsWarnUnaudited: 0, |
491 | 497 | policyViolationsInfoTotal: 0,
|
492 |
| - policyViolationsInfoUnaudited: 0, |
| 498 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 499 | + // policyViolationsInfoUnaudited: 0, |
493 | 500 | tabIndex: 0,
|
494 | 501 | };
|
495 | 502 | },
|
@@ -560,26 +567,29 @@ export default {
|
560 | 567 | this.project.metrics.policyViolationsFail,
|
561 | 568 | 0,
|
562 | 569 | );
|
563 |
| - this.policyViolationsFailUnaudited = common.valueWithDefault( |
564 |
| - this.project.metrics.policyViolationsFailUnaudited, |
565 |
| - 0, |
566 |
| - ); |
| 570 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 571 | + // this.policyViolationsFailUnaudited = common.valueWithDefault( |
| 572 | + // this.project.metrics.policyViolationsFailUnaudited, |
| 573 | + // 0, |
| 574 | + // ); |
567 | 575 | this.policyViolationsWarnTotal = common.valueWithDefault(
|
568 | 576 | this.project.metrics.policyViolationsWarn,
|
569 | 577 | 0,
|
570 | 578 | );
|
571 |
| - this.policyViolationsWarnUnaudited = common.valueWithDefault( |
572 |
| - this.project.metrics.policyViolationsWarnUnaudited, |
573 |
| - 0, |
574 |
| - ); |
| 579 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 580 | + // this.policyViolationsWarnUnaudited = common.valueWithDefault( |
| 581 | + // this.project.metrics.policyViolationsWarnUnaudited, |
| 582 | + // 0, |
| 583 | + // ); |
575 | 584 | this.policyViolationsInfoTotal = common.valueWithDefault(
|
576 | 585 | this.project.metrics.policyViolationsInfo,
|
577 | 586 | 0,
|
578 | 587 | );
|
579 |
| - this.policyViolationsInfoUnaudited = common.valueWithDefault( |
580 |
| - this.project.metrics.policyViolationsInfoUnaudited, |
581 |
| - 0, |
582 |
| - ); |
| 588 | + // TODO: Requires https://github.com/DependencyTrack/dependency-track/pull/3615. |
| 589 | + // this.policyViolationsInfoUnaudited = common.valueWithDefault( |
| 590 | + // this.project.metrics.policyViolationsInfoUnaudited, |
| 591 | + // 0, |
| 592 | + // ); |
583 | 593 | EventBus.$emit('addCrumb', this.projectLabel);
|
584 | 594 | this.$title = this.projectLabel;
|
585 | 595 | });
|
|
0 commit comments