From f0139c55eea238f078a717e410565b1576db93b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Mon, 8 Jan 2018 05:29:31 +0100 Subject: [PATCH] feat(user-config): Upload user configuration from json/bin file (#545) * feat(user-config): Upload user configuration from json/bin file * fix error message * remove file extension filter * apply user config after loaded from file * add file filter * remove file filter --- .../device-configuration.component.html | 8 +-- .../device-configuration.component.ts | 19 ++++++- .../src/app/models/upload-file-data.ts | 4 ++ .../src/app/store/actions/user-config.ts | 21 +++++++- .../uhk-web/src/app/store/effects/device.ts | 2 +- .../src/app/store/effects/user-config.ts | 50 +++++++++++++++++-- .../app/store/reducers/user-configuration.ts | 1 + packages/uhk-web/src/styles.scss | 21 ++++++++ 8 files changed, 117 insertions(+), 9 deletions(-) create mode 100644 packages/uhk-web/src/app/models/upload-file-data.ts diff --git a/packages/uhk-web/src/app/components/device/configuration/device-configuration.component.html b/packages/uhk-web/src/app/components/device/configuration/device-configuration.component.html index f08c3c06..7dcbd4bd 100644 --- a/packages/uhk-web/src/app/components/device/configuration/device-configuration.component.html +++ b/packages/uhk-web/src/app/components/device/configuration/device-configuration.component.html @@ -14,9 +14,11 @@ binary format.
  • - +