From 5478f6d9de58d2f835ce170383e75e9951167300 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Wed, 13 Mar 2024 09:43:08 +0300 Subject: [PATCH] Render AppName in page title --- .../Layout/PageHeader.razor | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor b/framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor index d0b11843c1f..d7c636d5d2a 100644 --- a/framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor +++ b/framework/src/Volo.Abp.AspNetCore.Components.Web.Theming/Layout/PageHeader.razor @@ -1,11 +1,22 @@ @using Blazorise @using Microsoft.Extensions.Options @using Microsoft.AspNetCore.Components.Web +@using Volo.Abp.Ui.Branding @inject IOptions Options +@inject IBrandingProvider BrandingProvider - @PageLayout.Title + + @if (PageLayout.Title.IsNullOrEmpty()) + { + @BrandingProvider.AppName + } + else + { + @PageLayout.Title | @BrandingProvider.AppName + } + @if(Options.Value.RenderPageTitle) {