From 887a09d052b9617e001b17f0875e06bb0332ed10 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 18 Oct 2017 16:12:28 -0700 Subject: [PATCH] fixing issue from UI-router upgrade where document title wouldn't update with the name of the state. --- awx/ui/client/index.template.ejs | 1 - awx/ui/client/src/app.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/awx/ui/client/index.template.ejs b/awx/ui/client/index.template.ejs index 4e47d3c8cb..f222a054d1 100644 --- a/awx/ui/client/index.template.ejs +++ b/awx/ui/client/index.template.ejs @@ -6,7 +6,6 @@ - <% htmlWebpackPlugin.files.css.forEach(file => {%> diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index ea3c3867d5..c815e59a90 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -200,7 +200,7 @@ angular $rootScope.tabTitle = `Ansible ${$rootScope.BRAND_NAME}`; $rootScope.$watch('$state.current.ncyBreadcrumbLabel', function(title) { title = (title) ? "| " + title : ""; - $rootScope.tabTitle = `Ansible ${$rootScope.BRAND_NAME} ${title}`; + document.title = `Ansible ${$rootScope.BRAND_NAME} ${title}`; }); function activateTab() {