fixing issue from UI-router upgrade where document title wouldn't update

with the name of the state.
This commit is contained in:
Jared Tabor 2017-10-18 16:12:28 -07:00
parent 02af117f51
commit 887a09d052
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="{{ STATIC_URL }}assets/favicon.ico?v={{version}}" />
<title ng-bind="tabTitle"></title>
<script>var $basePath = '{{ STATIC_URL }}'</script>
<% htmlWebpackPlugin.files.css.forEach(file => {%>
<link href="{{ STATIC_URL }}<%= file %>" rel="stylesheet" />

View File

@ -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() {