From 557a98b2a4b3c4bf8df7773c598b060ba4bd96ae Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Fri, 15 Sep 2017 13:13:04 +0300 Subject: [PATCH] UI: Data key configs improvements. --- ui/src/app/common/utils.service.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/app/common/utils.service.js b/ui/src/app/common/utils.service.js index de5fef38bb..b8a98a8c4c 100644 --- a/ui/src/app/common/utils.service.js +++ b/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 {