0
jhsanc created
- ABP Framework version: v7.4.1
- UI Type: Blazor WASM
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
Hi, I need wrap all content of Blazor Wasm App, with TelerikRootComponent tag, I already did a ticket but told me have a bug with layouts. Well I found this alternative: Create an App.razor file:
**<TelerikRootComponent>**
<CascadingAuthenticationState>
<Router AppAssembly="RouterOptions.Value.AppAssembly"
AdditionalAssemblies="RouterOptions.Value.AdditionalAssemblies">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@LayoutOptions.Value.Layout">
<NotAuthorized>
@if (context.User?.Identity?.IsAuthenticated == false)
{
<RedirectToLogin />
}
else
{
<ErrorView Title="@UiLocalizer["403Message"]"
HttpStatusCode="403"
Message="@UiLocalizer["403MessageDetail"]" />
}
</NotAuthorized>
</AuthorizeRouteView>
</Found>
<NotFound>
<LayoutView Layout="@LayoutOptions.Value.Layout">
<ErrorView Title="@UiLocalizer["404Message"]"
HttpStatusCode="404"
Message="@UiLocalizer["404MessageDetail"]" />
</LayoutView>
</NotFound>
</Router>
</CascadingAuthenticationState>
**</TelerikRootComponent>**
And I changed this: But now I'm worried, I don't know if I update abp with new version I can have issues, and I need know if builder.RootComponents.Add<App>("#ApplicationContainer"); its mandatory for leptonX theme. Or if exists any way to keep updated my own app.razor
Thank you,
Johan
1 Answer(s)
-
0
Hi,
Your approach is correct, it will have no effect when upgrading to a new version.
Actually in version 8.2, we added
app.razor
to the application template instead of the theme