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,6 +441,12 @@ function Utils($mdColorPalette, $rootScope, $window, $translate, $q, $timeout, t
441 settings: {}, 441 settings: {},
442 _hash: Math.random() 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 if (keyInfo.color) { 450 if (keyInfo.color) {
445 dataKey.color = keyInfo.color; 451 dataKey.color = keyInfo.color;
446 } else { 452 } else {