From ba7c817e20e16a1e560107c9033a137b104087c4 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Wed, 24 Apr 2024 11:38:49 +0200 Subject: [PATCH] feat(web-app-template): Add `is_excluded` to `WebAppOrtIssue` Align with the recently added corresponding property in `EvaluatedIssue`. Signed-off-by: Frank Viernau --- .../web-app-template/src/models/WebAppOrtIssue.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/reporters/web-app-template/src/models/WebAppOrtIssue.js b/plugins/reporters/web-app-template/src/models/WebAppOrtIssue.js index cfd153dd041c0..c0ce03ee89aed 100644 --- a/plugins/reporters/web-app-template/src/models/WebAppOrtIssue.js +++ b/plugins/reporters/web-app-template/src/models/WebAppOrtIssue.js @@ -22,6 +22,8 @@ import { randomStringGenerator } from '../utils'; class WebAppOrtIssue { #_id; + #isExcluded + #howToFix #message; @@ -58,6 +60,8 @@ class WebAppOrtIssue { this.#_id = obj._id; } + this.#isExcluded = obj.is_excluded === true || obj.isExcluded === true; + if (obj.how_to_fix || obj.howToFix) { this.#howToFix = obj.how_to_fix || obj.howToFix; @@ -125,6 +129,10 @@ class WebAppOrtIssue { return this.#howToFix; } + get isExcluded() { + return this.#isExcluded; + } + get isResolved() { return this.#resolutionIndexes && this.#resolutionIndexes.size > 0; }