mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-27 19:16:27 +00:00
Fixed header of dialog
This commit is contained in:
parent
4476097340
commit
e384260cfb
@ -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>
|
||||||
|
|||||||
@ -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; }
|
||||||
}
|
}
|
||||||
@ -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 };
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user