(UI) minor update of update pause notification messages

This commit is contained in:
Alexandr Stelnykovych
2025-11-21 14:07:57 +02:00
parent 7341fb3068
commit 4913147dd5
2 changed files with 10 additions and 2 deletions

View File

@@ -313,9 +313,17 @@ export class NavigationComponent implements OnInit {
event.preventDefault();
event.stopPropagation();
let msg = 'Resuming ...';
if (this.pauseState?.Interception===true && this.pauseState?.SPN===true)
msg = 'Resuming Portmaster and SPN ...';
else if (this.pauseState?.Interception===true)
msg = 'Resuming Portmaster ...';
else if (this.pauseState?.SPN===true)
msg = 'Resuming SPN ...';
this.portapi.resume()
.subscribe(this.actionIndicator.httpObserver(
'Resuming ...',
msg,
'Failed to Resume',
))
}

View File

@@ -204,7 +204,7 @@ func (c *Control) updateStatesAndNotify() {
title = "SPN paused"
nType = notifications.Info // less severe notification for SPN-only pause
}
message := fmt.Sprintf("%s till %v", title, c.pauseInfo.TillTime.Format(time.TimeOnly))
message := fmt.Sprintf("%s until %v", title, c.pauseInfo.TillTime.Format(time.TimeOnly))
c.pauseNotification = &notifications.Notification{
EventID: "control:paused",