moved error messages from header to footer so that they're always visible

This commit is contained in:
Nils Kruthoff 2026-07-27 11:17:53 +02:00
parent df4663fff4
commit 4584726085
No known key found for this signature in database
GPG Key ID: A5C0151B4DDB172C

View File

@ -3,13 +3,6 @@
<MudDialog DefaultFocus="DefaultFocus.None"> <MudDialog DefaultFocus="DefaultFocus.None">
<DialogContent> <DialogContent>
<MudStack Spacing="2"> <MudStack Spacing="2">
@if (!string.IsNullOrWhiteSpace(this.issue))
{
<MudAlert Severity="Severity.Error" Dense="true">
@this.issue
</MudAlert>
}
@if (this.isLoading) @if (this.isLoading)
{ {
<MudProgressLinear Indeterminate="true" Color="Color.Primary" /> <MudProgressLinear Indeterminate="true" Color="Color.Primary" />
@ -35,6 +28,12 @@
</MudStack> </MudStack>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
@if (!string.IsNullOrWhiteSpace(this.issue))
{
<MudAlert Severity="Severity.Error" Dense="true" Class="mx-3">
@this.issue
</MudAlert>
}
<MudButton OnClick="@this.Cancel" Disabled="@this.isSaving" Size="Size.Small"> <MudButton OnClick="@this.Cancel" Disabled="@this.isSaving" Size="Size.Small">
@T("Cancel") @T("Cancel")
</MudButton> </MudButton>