From 2bf7d545a292a27d4d27606c25276618c44aaafc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ro=CC=81bert=20Kiss?= Date: Thu, 14 Dec 2017 22:50:24 +0100 Subject: [PATCH] fix load success action --- packages/uhk-agent/src/services/device.service.ts | 1 - packages/uhk-web/src/app/store/effects/user-config.ts | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uhk-agent/src/services/device.service.ts b/packages/uhk-agent/src/services/device.service.ts index 9c7cbd4e..70f9e4fb 100644 --- a/packages/uhk-agent/src/services/device.service.ts +++ b/packages/uhk-agent/src/services/device.service.ts @@ -89,7 +89,6 @@ export class DeviceService { success: true, ...result }; - event.sender.send(IpcEvents.device.loadConfigurationReply, JSON.stringify(response)); } catch (error) { response = { success: false, diff --git a/packages/uhk-web/src/app/store/effects/user-config.ts b/packages/uhk-web/src/app/store/effects/user-config.ts index 4caa1fdb..f22e0357 100644 --- a/packages/uhk-web/src/app/store/effects/user-config.ts +++ b/packages/uhk-web/src/app/store/effects/user-config.ts @@ -186,9 +186,10 @@ export class UserConfigEffects { }); @Effect() loadUserConfigurationSuccess$ = this.actions$ - .ofType(ActionTypes.SAVE_USER_CONFIG_SUCCESS) + .ofType(ActionTypes.LOAD_USER_CONFIG_SUCCESS) .withLatestFrom(this.store.select(autoWriteUserConfiguration)) .switchMap(([action, autoWriteUserConfig]) => { + this.logService.debug('[UserConfigEffect] LOAD_USER_CONFIG_SUCCESS', {autoWriteUserConfig}); if (autoWriteUserConfig) { return Observable.of(new SaveConfigurationAction()); }