Skip to content

Commit b932521

Browse files
fix: refine repo badge conditions to include dev alerts check
1 parent 16c5362 commit b932521

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/app/shared/components/alerts-list/alerts-list.component.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@
7474
<div
7575
class="repo-badge"
7676
[class.safe]="
77-
prodAlerts(repo) === 0 && repo.dependabot_enabled && !repo.error
77+
prodAlerts(repo) === 0 &&
78+
repo.dev_alerts === 0 &&
79+
repo.dependabot_enabled &&
80+
!repo.error
7881
"
7982
[class.danger]="prodAlerts(repo) > 0"
8083
[class.disabled]="!repo.dependabot_enabled && !repo.error"
@@ -89,7 +92,10 @@
8992
></i>
9093
<i
9194
*ngIf="
92-
prodAlerts(repo) === 0 && repo.dependabot_enabled && !repo.error
95+
prodAlerts(repo) === 0 &&
96+
repo.dev_alerts === 0 &&
97+
repo.dependabot_enabled &&
98+
!repo.error
9399
"
94100
class="ti ti-check"
95101
></i>

0 commit comments

Comments
 (0)