Skip to content

Commit

Permalink
Use project_name if header title is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Aug 25, 2023
1 parent d3a0a31 commit 3efe33b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/Layout/LayoutHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:alt="header_logo_text"
/>
<span>
{{ header_logo_text }}
{{ header_logo_text || project_name }}
</span>
</RouterLink>

Expand Down Expand Up @@ -54,8 +54,13 @@ import SwitchTheme from '../SwitchTheme.vue'
import NavbarMobile from '../Navbar/NavbarMobile.vue'
import { isValidUrl } from '@/utils/url'
const { header_links, header_logo_text, header_logo_url, base_url } =
__APP_ENV__
const {
header_links,
header_logo_text,
header_logo_url,
base_url,
project_name
} = __APP_ENV__
const logoUrl = isValidUrl(header_logo_url)
? header_logo_url
Expand Down

0 comments on commit 3efe33b

Please sign in to comment.