(UI) minor update of update pause notification messages
This commit is contained in:
@@ -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',
|
||||
))
|
||||
}
|
||||
|
||||
@@ -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 = ¬ifications.Notification{
|
||||
EventID: "control:paused",
|
||||
|
||||
Reference in New Issue
Block a user