mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
fixing issue from UI-router upgrade where document title wouldn't update
with the name of the state.
This commit is contained in:
parent
02af117f51
commit
887a09d052
@ -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" />
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user