mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 22:49:32 -02:30
translate brand logo alt text
This commit is contained in:
@@ -138,12 +138,13 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
|
||||
}
|
||||
}, [handleLogout, timeRemaining]);
|
||||
|
||||
const brandName = config?.license_info?.product_name || 'brand';
|
||||
const brandName = config?.license_info?.product_name;
|
||||
const alt = brandName ? i18n._(t`${brandName} logo`) : i18n._(t`brand logo`);
|
||||
|
||||
const header = (
|
||||
<PageHeader
|
||||
showNavToggle
|
||||
logo={<BrandLogo alt={i18n._(t`${brandName} logo`)} />}
|
||||
logo={<BrandLogo alt={alt} />}
|
||||
logoProps={{ href: '/' }}
|
||||
headerTools={
|
||||
<PageHeaderToolbar
|
||||
@@ -158,7 +159,7 @@ function AppContainer({ i18n, navRouteConfig = [], children }) {
|
||||
|
||||
const simpleHeader = config.isLoading ? null : (
|
||||
<PageHeader
|
||||
logo={<BrandLogo />}
|
||||
logo={<BrandLogo alt={alt} />}
|
||||
headerTools={
|
||||
<PageHeaderTools>
|
||||
<PageHeaderToolsGroup>
|
||||
|
||||
Reference in New Issue
Block a user