From f2ed09d183441b14376743635914baf2b5429bce Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Tue, 26 May 2020 09:59:55 -0400 Subject: [PATCH] Don't reset hold sys/tg on clients when restarting the server --- .../app/components/rdio-scanner/rdio-scanner.service.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/client/src/app/components/rdio-scanner/rdio-scanner.service.ts b/client/src/app/components/rdio-scanner/rdio-scanner.service.ts index 20854e0..0cece47 100644 --- a/client/src/app/components/rdio-scanner/rdio-scanner.service.ts +++ b/client/src/app/components/rdio-scanner/rdio-scanner.service.ts @@ -622,9 +622,6 @@ export class AppRdioScannerService implements OnDestroy { case WsCommand.Config: this.config = message[1]; - this.liveFeedMapPriorToHoldSystem = null; - this.liveFeedMapPriorToHoldTalkgroup = null; - if ('systems' in this.config) { this.liveFeedRebuild(); } @@ -637,8 +634,8 @@ export class AppRdioScannerService implements OnDestroy { auth: false, config: this.config, groups: this.groups, - holdSys: false, - holdTg: false, + holdSys: !!this.liveFeedMapPriorToHoldSystem, + holdTg: !!this.liveFeedMapPriorToHoldTalkgroup, map: this.liveFeedMap, });