Browse Source

UI: Data key configs improvements.

pull/295/head
Igor Kulikov 9 years ago
parent
commit
557a98b2a4
  1. 6
      ui/src/app/common/utils.service.js

6
ui/src/app/common/utils.service.js

@ -441,6 +441,12 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t
settings: {},
_hash: Math.random()
}
if (keyInfo.units) {
dataKey.units = keyInfo.units;
}
if (angular.isDefined(keyInfo.decimals)) {
dataKey.decimals = keyInfo.decimals;
}
if (keyInfo.color) {
dataKey.color = keyInfo.color;
} else {

Loading…
Cancel
Save