diff --git a/plugins/reporters/web-app-template/src/models/WebAppOrtIssue.js b/plugins/reporters/web-app-template/src/models/WebAppOrtIssue.js index cfd153dd041c0..be8baabf0df2a 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; + 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; }