Skip to content
This repository has been archived by the owner on May 23, 2019. It is now read-only.

Commit

Permalink
fix(UI): Update string loading in chart and rules
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
  • Loading branch information
cdjackson committed Jun 12, 2016
1 parent edcfb93 commit dd2e6f7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
9 changes: 6 additions & 3 deletions src/app/automation/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
]);
}
}
});
Expand Down Expand Up @@ -67,7 +70,7 @@ angular.module('HABmin.rules', [
onLoad: function (editor) {
$scope.aceEditor = editor;
},
onChange: function(e) {
onChange: function (e) {

}
};
Expand Down
3 changes: 2 additions & 1 deletion src/app/chart/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
]);
}
}
Expand Down
8 changes: 8 additions & 0 deletions src/app/tools/zwave/logService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
12 changes: 6 additions & 6 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,20 +255,20 @@ <h4>
<i class="fa fa-angle-left pull-right"></i>
</a>
<ul class="treeview-menu">
<li ui-sref="rules">
<a>
<li>
<a ui-sref="rules">
<i class="fa fa-fw fa-puzzle-piece"></i>
<span i18n="habmin.Rules"></span>
</a>
</li>
<li ui-sref="scheduler">
<a>
<li>
<a ui-sref="scheduler">
<i class="fa fa-fw fa-clock-o"></i>
<span i18n="habmin.Scheduler"></span>
</a>
</li>
<li ui-sref="scheduler" class="disabled">
<a>
<li>
<a ui-sref="scheduler" class="disabled">
<i class="fa fa-fw fa-at"></i>
<span i18n="habmin.Notifications"></span>
</a>
Expand Down
3 changes: 2 additions & 1 deletion src/languages/en-GB/services.lang.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"ErrorGettingServices": "Error getting service list"
"ErrorGettingServices": "Error getting service list",
"Services": "Services"
}

0 comments on commit dd2e6f7

Please sign in to comment.