Skip to content

Commit

Permalink
feat(web-app-template): Add is_excluded to WebAppOrtIssue
Browse files Browse the repository at this point in the history
Align with the recently added corresponding property in
`EvaluatedIssue`.

Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Apr 24, 2024
1 parent b07abcb commit 8702998
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import { randomStringGenerator } from '../utils';
class WebAppOrtIssue {
#_id;

#isExcluded

#howToFix

#message;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -125,6 +129,10 @@ class WebAppOrtIssue {
return this.#howToFix;
}

get isExcluded() {
return this.#isExcluded;
}

get isResolved() {
return this.#resolutionIndexes && this.#resolutionIndexes.size > 0;
}
Expand Down

0 comments on commit 8702998

Please sign in to comment.