Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Use updated function methods in notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Aug 9, 2023
1 parent 971bcf7 commit 8b26419
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<div sfngTipUpTrigger="navNotifications" sfngTipUpPassive class="relative mt-3" (click)="toggleSideDash($event)"
*ngIf="sideDashStatus !== 'expanded'">

<svg class="w-4 h-4 {{ hasNewNotifications ? notificationColor : '' }}" xmlns="http://www.w3.org/2000/svg"
<svg class="w-4 h-4 {{ hasNewNotifications ? notificationColor : 'text-tertiary' }}" xmlns="http://www.w3.org/2000/svg"
fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9" />
Expand Down
11 changes: 5 additions & 6 deletions modules/portmaster/src/app/layout/navigation/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ export class NavigationComponent implements OnInit {

if (notif.some(n => n.Type === NotificationType.Error)) {
this.notificationColor = 'text-red-300';
} else
if (notif.some(n => n.Type === NotificationType.Warning)) {
this.notificationColor = 'text-yellow-300';
} else {
this.notificationColor = 'text-green-300';
}
} else if (notif.some(n => n.Type === NotificationType.Warning)) {
this.notificationColor = 'text-yellow-300';
} else {
this.notificationColor = 'text-green-300';
}

this.cdr.markForCheck();
})
Expand Down
2 changes: 1 addition & 1 deletion notifier/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func detectInstallationDir() string {

func updateRegistryIndex(mustLoadIndex bool) error {
// Set indexes based on the release channel.
warning := helper.SetIndexes(registry, "", false)
warning := helper.SetIndexes(registry, "", false, false, false)
if warning != nil {
log.Warningf("%q", warning)
}
Expand Down

0 comments on commit 8b26419

Please sign in to comment.