From 42e2816b5683c4148eeb0b0eec9659e453f8e850 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sun, 29 Oct 2017 12:29:16 +0100 Subject: [PATCH] Better title for storage graphs --- static/storage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/storage.js b/static/storage.js index 2fbf6dca..dac98649 100644 --- a/static/storage.js +++ b/static/storage.js @@ -132,7 +132,9 @@ function makeItemGraphs(itemName){ try { slaveDisplayName = slaves[slaveID].instanceName; } catch(e) {} - drawChart(statistic+"contentGraph"+slaveID, [JSON.parse(xmlhttp.response).data], `${slaveDisplayName} (${slaveID}) ${itemName}`); + let whatGraphIsIt = "Items sent to cluster from"; + if(statistic == "remove") whatGraphIsIt = "Items taken from cluster by" + drawChart(statistic+"contentGraph"+slaveID, [JSON.parse(xmlhttp.response).data], `${whatGraphIsIt} ${slaveDisplayName} (${slaveID}) ${itemName}`); // console.log(JSON.parse(xmlhttp.response).data); } }