diff --git a/src/main/webapp/scripts/directives/navbar.js b/src/main/webapp/scripts/directives/navbar.js index 06116055f..f318bbe24 100644 --- a/src/main/webapp/scripts/directives/navbar.js +++ b/src/main/webapp/scripts/directives/navbar.js @@ -47,6 +47,8 @@ pinpointApp.directive('navbar', [ 'navbarConfig', '$rootScope', '$http', $timeout(function () { if ($routeParams.queryEndTime) { setDateTime($routeParams.queryEndTime); + } else { + setDateTime(); } }); diff --git a/src/main/webapp/scripts/directives/nodeInfoDetails.js b/src/main/webapp/scripts/directives/nodeInfoDetails.js index d1a8645b0..ae8df0b0e 100644 --- a/src/main/webapp/scripts/directives/nodeInfoDetails.js +++ b/src/main/webapp/scripts/directives/nodeInfoDetails.js @@ -6,7 +6,7 @@ pinpointApp.constant('nodeInfoDetailsConfig', { }); pinpointApp - .directive('nodeInfoDetails', [ 'nodeInfoDetailsConfig', '$rootScope', '$templateCache', function (config, $rootScope, $templateCache) { + .directive('nodeInfoDetails', [ 'nodeInfoDetailsConfig', function (config) { return { restrict: 'EA', replace: true, @@ -14,6 +14,7 @@ pinpointApp link: function postLink(scope, element, attrs) { var reset = function () { + scope.nodeName = null; scope.nodeCategory = null; scope.unknownGroup = null; scope.hosts = null; @@ -25,6 +26,7 @@ pinpointApp }; var showDetailInformation = function (query, data) { + scope.nodeName = data.text; scope.nodeCategory = data.category; scope.unknownGroup = data.textArr; scope.hosts = data.hosts; diff --git a/src/main/webapp/views/nodeInfoDetails.html b/src/main/webapp/views/nodeInfoDetails.html index dbd7f5e3b..1c208a9e9 100644 --- a/src/main/webapp/views/nodeInfoDetails.html +++ b/src/main/webapp/views/nodeInfoDetails.html @@ -10,11 +10,16 @@
- USER +
+ USER +
+
+ {{nodeName}} +
Hosts