From 4ea6e6a40e3b28883cb3db075622546978621ccd Mon Sep 17 00:00:00 2001 From: patricker Date: Fri, 29 Jun 2018 10:49:44 -0600 Subject: [PATCH] NIFI-4535 This closes #2826 Signed-off-by: Mike Thomsen --- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js index 28c8a40c42..3fdbfbbe47 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas.js @@ -166,6 +166,14 @@ nfNgBridge.injector.get('breadcrumbsCtrl').generateBreadcrumbs(breadcrumb); nfNgBridge.injector.get('breadcrumbsCtrl').resetScrollPosition(); + // set page title to the name of the root processor group + var rootBreadcrumb = breadcrumb; + while(rootBreadcrumb.parentBreadcrumb != null) { + rootBreadcrumb = rootBreadcrumb.parentBreadcrumb + } + + document.title = rootBreadcrumb.breadcrumb.name; + // update the timestamp $('#stats-last-refreshed').text(processGroupFlow.lastRefreshed);