Commit 93e629fa by gutkaBinit Committed by kevalbhatt

ATLAS-3138 UI : Stats popup table layout improve for better readability --…

ATLAS-3138 UI : Stats popup table layout improve for better readability -- adding missing number format for entities list
parent 011e8546
...@@ -117,20 +117,20 @@ define(['require', ...@@ -117,20 +117,20 @@ define(['require',
type = opt.type; type = opt.type;
_.each(entityData, function(val, key) { _.each(entityData, function(val, key) {
var intVal = _.isUndefined(val) ? 0 : val; var intVal = _.isUndefined(val) ? 0 : val;
if (type == "active") {
activeEntityCount += intVal;
} else {
deletedEntityCount += intVal;
}
intVal = _.numberFormatWithComa(intVal)
if (stats[key]) { if (stats[key]) {
stats[key][type] = intVal; stats[key][type] = intVal;
} else { } else {
stats[key] = {}; stats[key] = {};
stats[key][type] = intVal; stats[key][type] = intVal;
} }
if (type == "active") {
activeEntityCount += intVal;
} else {
deletedEntityCount += intVal;
}
}) })
}; };
createEntityData({ createEntityData({
"entityData": activeEntities, "entityData": activeEntities,
"type": "active" "type": "active"
...@@ -167,8 +167,7 @@ define(['require', ...@@ -167,8 +167,7 @@ define(['require',
return tableBody; return tableBody;
}; };
if (data.Notification) { if (data.Notification) {
var tableCol = [ var tableCol = [{
{
label: "Total <br> (from " + (that.getValue({ label: "Total <br> (from " + (that.getValue({
"value": data.Server["startTimeStamp"], "value": data.Server["startTimeStamp"],
"type": Enums.stats.Server["startTimeStamp"], "type": Enums.stats.Server["startTimeStamp"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment