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:
@@ -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/>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user