From 6bc2bc8331bbfa0357d803d598d9b249b894c1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Sun, 2 Jul 2017 22:38:29 +0200 Subject: [PATCH] fix(device): Agent-electron should always read the configuration from the UHK over USB. (#327) The feature will implement later. --- .../electron-datastorage-repository.service.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/electron/src/services/electron-datastorage-repository.service.ts b/electron/src/services/electron-datastorage-repository.service.ts index f2e1ea66..d06f04b8 100644 --- a/electron/src/services/electron-datastorage-repository.service.ts +++ b/electron/src/services/electron-datastorage-repository.service.ts @@ -18,12 +18,18 @@ export class ElectronDataStorageRepositoryService implements DataStorageReposito storage.set(key, JSON.stringify(value)); } + // TODO: Throw error when read user config from electron datastore + // Agent-electron should always read the configuration from the UHK over USB which will be implemented later. + // If implemented the feature should have to throw an error to prevent unwanted side effects. getConfig(): UserConfiguration { - return ElectronDataStorageRepositoryService.getValue('user-config'); + return null; } + // TODO: Throw error when save user config from electron-datastore + // Agent-electron should always read the configuration from the UHK over USB which will be implemented later. + // If implemented the feature should have to throw an error to prevent unwanted side effects. saveConfig(config: UserConfiguration): void { - ElectronDataStorageRepositoryService.saveValue('user-config', config.toJsonObject()); + } getAutoUpdateSettings(): AutoUpdateSettings {