Add the whole user configuration to the AppState
Closes #252 Fixes #219
This commit is contained in:
committed by
József Farkas
parent
e41a62be13
commit
f1f8a8d64e
@@ -66,7 +66,7 @@ import { CaptureService } from './shared/services/capture.service';
|
||||
import { MapperService } from './shared/services/mapper.service';
|
||||
|
||||
import { KeymapEffects, MacroEffects } from './shared/store/effects';
|
||||
import { keymapReducer, macroReducer, presetReducer } from './shared/store/reducers';
|
||||
import { userConfigurationReducer, presetReducer } from './shared/store/reducers';
|
||||
import { DataStorage } from './shared/store/storage';
|
||||
|
||||
import { KeymapEditGuard } from './shared/components/keymap/edit';
|
||||
@@ -79,8 +79,7 @@ const storageService: DataStorage = storageInjector.get(DataStorage);
|
||||
|
||||
// All reducers that are used in application
|
||||
const storeConfig = {
|
||||
keymaps: storageService.saveState(keymapReducer),
|
||||
macros: storageService.saveState(macroReducer),
|
||||
userConfiguration: storageService.saveState(userConfigurationReducer),
|
||||
presetKeymaps: presetReducer
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user