Give empty location a label

This commit is contained in:
Girish Ramakrishnan
2016-09-30 10:17:34 -07:00
parent 475fd06ac0
commit 39043736e5

View File

@@ -154,7 +154,7 @@ angular.module('Application').controller('GraphsController', ['$scope', '$locati
$scope.installedApps.forEach(function (app) {
targets.push('summarize(collectd.localhost.table-' + app.id + '-memory.gauge-rss, "1min", "avg")');
targetsInfo.push({
label: app.location,
label: app.location || 'naked domain',
color: getRandomColor(),
app: app
});