Commit 557a98b2a4b3c4bf8df7773c598b060ba4bd96ae

Authored by Igor Kulikov
1 parent 9aa92442

UI: Data key configs improvements.

... ... @@ -441,6 +441,12 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t
441 441 settings: {},
442 442 _hash: Math.random()
443 443 }
  444 + if (keyInfo.units) {
  445 + dataKey.units = keyInfo.units;
  446 + }
  447 + if (angular.isDefined(keyInfo.decimals)) {
  448 + dataKey.decimals = keyInfo.decimals;
  449 + }
444 450 if (keyInfo.color) {
445 451 dataKey.color = keyInfo.color;
446 452 } else {
... ...