From dd2e6f7ce6d28960db995566ae1877711bbae487 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Sun, 12 Jun 2016 23:17:28 +0100 Subject: [PATCH] fix(UI): Update string loading in chart and rules Signed-off-by: Chris Jackson --- src/app/automation/rules.js | 9 ++++++--- src/app/chart/chart.js | 3 ++- src/app/tools/zwave/logService.js | 8 ++++++++ src/index.html | 12 ++++++------ src/languages/en-GB/services.lang.json | 3 ++- 5 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/app/automation/rules.js b/src/app/automation/rules.js index c554a526..66b0f47d 100644 --- a/src/app/automation/rules.js +++ b/src/app/automation/rules.js @@ -33,8 +33,11 @@ angular.module('HABmin.rules', [ data: {pageTitle: 'Rules'}, resolve: { // Make sure the localisation files are resolved before the controller runs - localisations: function (locale) { - return locale.ready('habmin'); + localisations: function ($q, locale) { + return $q.all([ + locale.ready('habmin'), + locale.ready('rule') + ]); } } }); @@ -67,7 +70,7 @@ angular.module('HABmin.rules', [ onLoad: function (editor) { $scope.aceEditor = editor; }, - onChange: function(e) { + onChange: function (e) { } }; diff --git a/src/app/chart/chart.js b/src/app/chart/chart.js index 77c8e34e..a30715fd 100644 --- a/src/app/chart/chart.js +++ b/src/app/chart/chart.js @@ -45,7 +45,8 @@ angular.module('HABmin.chart', [ localisations: function ($q, locale) { return $q.all([ locale.ready('common'), - locale.ready('habmin') + locale.ready('habmin'), + locale.ready('chart') ]); } } diff --git a/src/app/tools/zwave/logService.js b/src/app/tools/zwave/logService.js index 5f5ce2d8..5bbac4ce 100755 --- a/src/app/tools/zwave/logService.js +++ b/src/app/tools/zwave/logService.js @@ -615,6 +615,14 @@ function ZWaveLogReader() { name: "SCENE_ACTIVATION", processor: null }, + 44: { + name: "SCENE_ACTUATOR_CONF", + processor: null + }, + 45: { + name: "SCENE_CONTROLLER_CONF", + processor: null + }, 48: { name: "SENSOR_BINARY", commands: { diff --git a/src/index.html b/src/index.html index bb969e9a..01e38f5e 100644 --- a/src/index.html +++ b/src/index.html @@ -255,20 +255,20 @@

    -
  • - +
  • +
  • -
  • - +
  • +
  • -
  • - +
  • + diff --git a/src/languages/en-GB/services.lang.json b/src/languages/en-GB/services.lang.json index 8bad7e41..5752652a 100644 --- a/src/languages/en-GB/services.lang.json +++ b/src/languages/en-GB/services.lang.json @@ -1,3 +1,4 @@ { - "ErrorGettingServices": "Error getting service list" + "ErrorGettingServices": "Error getting service list", + "Services": "Services" }