fix load success action
This commit is contained in:
@@ -89,7 +89,6 @@ export class DeviceService {
|
|||||||
success: true,
|
success: true,
|
||||||
...result
|
...result
|
||||||
};
|
};
|
||||||
event.sender.send(IpcEvents.device.loadConfigurationReply, JSON.stringify(response));
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
response = {
|
response = {
|
||||||
success: false,
|
success: false,
|
||||||
|
|||||||
@@ -186,9 +186,10 @@ export class UserConfigEffects {
|
|||||||
});
|
});
|
||||||
|
|
||||||
@Effect() loadUserConfigurationSuccess$ = this.actions$
|
@Effect() loadUserConfigurationSuccess$ = this.actions$
|
||||||
.ofType(ActionTypes.SAVE_USER_CONFIG_SUCCESS)
|
.ofType(ActionTypes.LOAD_USER_CONFIG_SUCCESS)
|
||||||
.withLatestFrom(this.store.select(autoWriteUserConfiguration))
|
.withLatestFrom(this.store.select(autoWriteUserConfiguration))
|
||||||
.switchMap(([action, autoWriteUserConfig]) => {
|
.switchMap(([action, autoWriteUserConfig]) => {
|
||||||
|
this.logService.debug('[UserConfigEffect] LOAD_USER_CONFIG_SUCCESS', {autoWriteUserConfig});
|
||||||
if (autoWriteUserConfig) {
|
if (autoWriteUserConfig) {
|
||||||
return Observable.of(new SaveConfigurationAction());
|
return Observable.of(new SaveConfigurationAction());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user