mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 10:50:21 +00:00
Minor changes to layout
This commit is contained in:
parent
2bc0e42d45
commit
56c652f38d
@ -42,7 +42,7 @@ else
|
|||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
<MudExpansionPanels Class="mb-3 mt-6" MultiExpansion="@false">
|
<MudExpansionPanels Class="mb-3 mt-6" MultiExpansion="@false">
|
||||||
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Policy" HeaderText="@T("Policy definition")" IsExpanded="@(!this.selectedPolicy?.IsProtected ?? true)">
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.Policy" HeaderText="@(T("Policy definition") + $": {this.selectedPolicy?.PolicyName}")" IsExpanded="@(!this.selectedPolicy?.IsProtected ?? true)">
|
||||||
<MudText Typo="Typo.h4" Class="mb-1">
|
<MudText Typo="Typo.h4" Class="mb-1">
|
||||||
@T("Common settings")
|
@T("Common settings")
|
||||||
</MudText>
|
</MudText>
|
||||||
@ -72,10 +72,9 @@ else
|
|||||||
<MudButton StartIcon="@Icons.Material.Filled.FileDownload" Disabled="@this.IsNoPolicySelectedOrProtected" Variant="Variant.Filled" Color="Color.Primary" OnClick="@this.ExportPolicyAsConfiguration">
|
<MudButton StartIcon="@Icons.Material.Filled.FileDownload" Disabled="@this.IsNoPolicySelectedOrProtected" Variant="Variant.Filled" Color="Color.Primary" OnClick="@this.ExportPolicyAsConfiguration">
|
||||||
@T("Export policy as configuration section")
|
@T("Export policy as configuration section")
|
||||||
</MudButton>
|
</MudButton>
|
||||||
|
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
|
|
||||||
<hr style="width: 100%; border-width: 0.25ch;" class="mt-6"/>
|
<MudDivider Style="height: 0.25ch; margin: 1rem 0;" Class="mt-6" />
|
||||||
|
|
||||||
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.DocumentScanner" HeaderText="@(T("Document analysis") + $": {this.selectedPolicy?.PolicyName}")" IsExpanded="@(this.selectedPolicy?.IsProtected ?? false)">
|
<ExpansionPanel HeaderIcon="@Icons.Material.Filled.DocumentScanner" HeaderText="@(T("Document analysis") + $": {this.selectedPolicy?.PolicyName}")" IsExpanded="@(this.selectedPolicy?.IsProtected ?? false)">
|
||||||
<MudText Typo="Typo.h4" Class="mb-1">
|
<MudText Typo="Typo.h4" Class="mb-1">
|
||||||
@ -93,7 +92,6 @@ else
|
|||||||
<AttachDocuments Name="Document Analysis Files Drop" @bind-DocumentPaths="@this.loadedDocumentPaths" CatchAllDocuments="true"/>
|
<AttachDocuments Name="Document Analysis Files Drop" @bind-DocumentPaths="@this.loadedDocumentPaths" CatchAllDocuments="true"/>
|
||||||
|
|
||||||
</ExpansionPanel>
|
</ExpansionPanel>
|
||||||
|
</MudExpansionPanels>
|
||||||
|
|
||||||
<ProviderSelection @bind-ProviderSettings="@this.providerSettings" ValidateProvider="@this.ValidatingProvider"/>
|
<ProviderSelection @bind-ProviderSettings="@this.providerSettings" ValidateProvider="@this.ValidatingProvider"/>
|
||||||
|
|
||||||
</MudExpansionPanels>
|
|
||||||
@ -73,7 +73,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<SettingsDialo
|
|||||||
|
|
||||||
protected override Func<Task> SubmitAction => this.Analyze;
|
protected override Func<Task> SubmitAction => this.Analyze;
|
||||||
|
|
||||||
protected override bool SubmitDisabled => this.IsNoPolicySelected;
|
protected override bool SubmitDisabled => (this.IsNoPolicySelected || this.loadedDocumentPaths.Count==0);
|
||||||
|
|
||||||
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
|
protected override ChatThread ConvertToChatThread => (this.chatThread ?? new()) with
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user