Fixed header of dialog

This commit is contained in:
Thorsten Sommer 2026-04-10 15:55:58 +02:00
parent 4476097340
commit e384260cfb
No known key found for this signature in database
GPG Key ID: B0B7E2FC074BF1F5
4 changed files with 1 additions and 10 deletions

View File

@ -1,11 +1,6 @@
@inherits MSGComponentBase @inherits MSGComponentBase
<MudStack Spacing="2"> <MudStack Spacing="2">
@if (this.ShowTitle)
{
<MudText Typo="Typo.h4">@this.Info.Title</MudText>
}
<MudText Typo="Typo.body2"> <MudText Typo="Typo.body2">
@T("Version"): @this.Info.VersionText @T("Version"): @this.Info.VersionText
</MudText> </MudText>

View File

@ -12,9 +12,6 @@ public partial class MandatoryInfoDisplay
[Parameter] [Parameter]
public DataMandatoryInfoAcceptance? Acceptance { get; set; } public DataMandatoryInfoAcceptance? Acceptance { get; set; }
[Parameter]
public bool ShowTitle { get; set; } = true;
[Parameter] [Parameter]
public bool ShowAcceptanceMetadata { get; set; } public bool ShowAcceptanceMetadata { get; set; }
} }

View File

@ -429,7 +429,7 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
{ x => x.Info, info }, { x => x.Info, info },
}; };
var dialogReference = await this.DialogService.ShowAsync<MandatoryInfoDialog>(null, dialogParameters, DialogOptions.BLOCKING_FULLSCREEN); var dialogReference = await this.DialogService.ShowAsync<MandatoryInfoDialog>(info.Title, dialogParameters, DialogOptions.BLOCKING_FULLSCREEN);
var dialogResult = await dialogReference.Result; var dialogResult = await dialogReference.Result;
return dialogResult is { Canceled: false, Data: true }; return dialogResult is { Canceled: false, Data: true };
} }

View File

@ -231,7 +231,6 @@
</MudText> </MudText>
<MandatoryInfoDisplay Info="@mandatoryInfoPanel.Info" <MandatoryInfoDisplay Info="@mandatoryInfoPanel.Info"
Acceptance="@mandatoryInfoPanel.Acceptance" Acceptance="@mandatoryInfoPanel.Acceptance"
ShowTitle="@false"
ShowAcceptanceMetadata="@true"/> ShowAcceptanceMetadata="@true"/>
</ExpansionPanel> </ExpansionPanel>
} }