mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-27 17:36:28 +00:00
Fixed header of dialog
This commit is contained in:
parent
4476097340
commit
e384260cfb
@ -1,11 +1,6 @@
|
||||
@inherits MSGComponentBase
|
||||
|
||||
<MudStack Spacing="2">
|
||||
@if (this.ShowTitle)
|
||||
{
|
||||
<MudText Typo="Typo.h4">@this.Info.Title</MudText>
|
||||
}
|
||||
|
||||
<MudText Typo="Typo.body2">
|
||||
@T("Version"): @this.Info.VersionText
|
||||
</MudText>
|
||||
|
||||
@ -12,9 +12,6 @@ public partial class MandatoryInfoDisplay
|
||||
[Parameter]
|
||||
public DataMandatoryInfoAcceptance? Acceptance { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool ShowTitle { get; set; } = true;
|
||||
|
||||
[Parameter]
|
||||
public bool ShowAcceptanceMetadata { get; set; }
|
||||
}
|
||||
@ -429,7 +429,7 @@ public partial class MainLayout : LayoutComponentBase, IMessageBusReceiver, ILan
|
||||
{ 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;
|
||||
return dialogResult is { Canceled: false, Data: true };
|
||||
}
|
||||
|
||||
@ -231,7 +231,6 @@
|
||||
</MudText>
|
||||
<MandatoryInfoDisplay Info="@mandatoryInfoPanel.Info"
|
||||
Acceptance="@mandatoryInfoPanel.Acceptance"
|
||||
ShowTitle="@false"
|
||||
ShowAcceptanceMetadata="@true"/>
|
||||
</ExpansionPanel>
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user