Skip to content

Commit

Permalink
#790 polish the details a little more
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Nov 29, 2013
1 parent 6015b36 commit 0064351
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions hawtio-web/src/main/webapp/app/fabric/js/brokerDiagram.ts
Expand Up @@ -153,12 +153,16 @@ module Fabric {
Core.$apply($scope);
}

function brokerNameMarkup(brokerName) {
return brokerName ? "<p></p>broker: " +brokerName + "</p>" : "";
}

function onContainerJolokia(containerJolokia, container, id) {
if (containerJolokia) {
container.jolokia = containerJolokia;

function getOrAddDestination(properties) {
var typeName = properties.destType
var typeName = properties.destType;
var destinationName = properties.destinationName;
if (!destinationName || ($scope.searchFilter && destinationName.indexOf($scope.searchFilter) < 0)) {
return null;
Expand All @@ -167,7 +171,7 @@ module Fabric {
return {
popup: {
title: (properties.destinationType || "Queue") + ": " + destinationName,
content: "<p>" + destinationName + " broker: " + (properties.brokerName || "") + "</p>"
content: brokerNameMarkup(properties.brokerName)
}
};
});
Expand All @@ -192,7 +196,7 @@ module Fabric {
return {
popup: {
title: "Consumer: " + consumerId,
content: "<p>client: " + (properties.clientId || "") + " broker: " + (properties.brokerName || "") + "</p>"
content: "<p>client: " + (properties.clientId || "") + "</p> " + brokerNameMarkup(properties.brokerName)
}
};
});
Expand Down Expand Up @@ -237,7 +241,7 @@ module Fabric {
return {
popup: {
title: "Producer: " + producerId,
content: "<p>client: " + (properties.clientId || "") + " broker: " + (properties.brokerName || "") + "</p>"
content: "<p>client: " + (properties.clientId || "") + "</p> " + brokerNameMarkup(properties.brokerName)
}
};
});
Expand Down

0 comments on commit 0064351

Please sign in to comment.