Stop cascading the main layout

This commit is contained in:
Thorsten Sommer 2025-04-04 22:51:28 +02:00
parent 6e3d80abac
commit 03c6e69f41
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 2 additions and 9 deletions

View File

@ -1,5 +1,3 @@
using AIStudio.Layout;
using Microsoft.AspNetCore.Components; using Microsoft.AspNetCore.Components;
namespace AIStudio.Components; namespace AIStudio.Components;
@ -30,9 +28,6 @@ public partial class InnerScrolling : MSGComponentBase
[Parameter] [Parameter]
public string Style { get; set; } = string.Empty; public string Style { get; set; } = string.Empty;
[CascadingParameter]
private MainLayout MainLayout { get; set; } = null!;
[Inject] [Inject]
private IJSRuntime JsRuntime { get; init; } = null!; private IJSRuntime JsRuntime { get; init; } = null!;

View File

@ -60,11 +60,9 @@
@if (!this.performingUpdate) @if (!this.performingUpdate)
{ {
<CascadingValue Value="@this" IsFixed="true"> @this.Body
@this.Body
</CascadingValue>
} }
<MudOverlay Visible="@this.performingUpdate" DarkBackground="@true" LockScroll="@true"> <MudOverlay Visible="@this.performingUpdate" DarkBackground="@true" LockScroll="@true">
<MudText Typo="Typo.h3">Please wait for the update to complete...</MudText> <MudText Typo="Typo.h3">Please wait for the update to complete...</MudText>
<MudProgressLinear Color="Color.Primary" Indeterminate="@true" Size="Size.Large" Rounded="@true"/> <MudProgressLinear Color="Color.Primary" Indeterminate="@true" Size="Size.Large" Rounded="@true"/>