You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by kb...@apache.org on 2019/04/16 07:22:24 UTC
[atlas] branch master updated: ATLAS-3138 UI : Stats popup table
layout improve for better readability -- adding missing number format for
entities list
This is an automated email from the ASF dual-hosted git repository.
kbhatt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 93e629f ATLAS-3138 UI : Stats popup table layout improve for better readability -- adding missing number format for entities list
93e629f is described below
commit 93e629fa839f30f2641b284c874485fbe3505b27
Author: gutkaBinit <bi...@gmail.com>
AuthorDate: Tue Apr 16 12:35:44 2019 +0530
ATLAS-3138 UI : Stats popup table layout improve for better readability -- adding missing number format for entities list
---
dashboardv2/public/js/views/site/Statistics.js | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/dashboardv2/public/js/views/site/Statistics.js b/dashboardv2/public/js/views/site/Statistics.js
index 6f402cf..1bf4859 100644
--- a/dashboardv2/public/js/views/site/Statistics.js
+++ b/dashboardv2/public/js/views/site/Statistics.js
@@ -117,20 +117,20 @@ define(['require',
type = opt.type;
_.each(entityData, function(val, key) {
var intVal = _.isUndefined(val) ? 0 : val;
+ if (type == "active") {
+ activeEntityCount += intVal;
+ } else {
+ deletedEntityCount += intVal;
+ }
+ intVal = _.numberFormatWithComa(intVal)
if (stats[key]) {
stats[key][type] = intVal;
} else {
stats[key] = {};
stats[key][type] = intVal;
}
- if (type == "active") {
- activeEntityCount += intVal;
- } else {
- deletedEntityCount += intVal;
- }
})
};
-
createEntityData({
"entityData": activeEntities,
"type": "active"
@@ -167,8 +167,7 @@ define(['require',
return tableBody;
};
if (data.Notification) {
- var tableCol = [
- {
+ var tableCol = [{
label: "Total <br> (from " + (that.getValue({
"value": data.Server["startTimeStamp"],
"type": Enums.stats.Server["startTimeStamp"],
@@ -254,4 +253,4 @@ define(['require',
}
});
return StatisticsView;
-});
+});
\ No newline at end of file