feat(UI): enhance pause info display in system tray menu and reorganize menu item positions

https://github.com/safing/portmaster/issues/2050
This commit is contained in:
Alexandr Stelnykovych
2025-11-10 15:14:20 +02:00
parent 997f95698b
commit 139610b99d
6 changed files with 125 additions and 53 deletions

View File

@@ -220,10 +220,10 @@
<div *ngIf="isPaused">
<div class="flex flex-col p-4 text-xxs">
<span class="text-secondary">
Paused: <span class="text-primary">{{ pauseInfo }} </span>
<span class="text-secondary">{{ pauseInfo }} </span>
</span>
<span class="text-secondary">
Auto-resume at: <span class="text-primary">{{ pauseInfoTillTime }} </span>
Auto-resume at <span class="text-secondary">{{ pauseInfoTillTime }} </span>
</span>
</div>
<hr/>

View File

@@ -42,11 +42,11 @@ export class NavigationComponent implements OnInit {
get isPausedSPN(): boolean { return this.pauseState?.SPN===true; }
get pauseInfo(): string {
if (this.pauseState?.Interception===true && this.pauseState?.SPN===true)
return 'Portmaster and SPN';
return 'Portmaster and SPN are paused';
else if (this.pauseState?.Interception===true)
return 'Portmaster';
return 'Portmaster is paused';
else if (this.pauseState?.SPN===true)
return 'SPN';
return 'SPN is paused';
return '';
}
get pauseInfoTillTime(): string {