mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 05:21:36 +00:00
Form reset is now also resetting the attachment list
This commit is contained in:
parent
704ed3dd2c
commit
8cdad359a9
@ -119,7 +119,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<NoSettingsPan
|
|||||||
|
|
||||||
protected override Func<Task> SubmitAction => this.Analyze;
|
protected override Func<Task> SubmitAction => this.Analyze;
|
||||||
|
|
||||||
protected override bool SubmitDisabled => (this.IsNoPolicySelected || this.loadedDocumentPaths.Count==0);
|
protected override bool SubmitDisabled => this.IsNoPolicySelected || this.loadedDocumentPaths.Count == 0;
|
||||||
|
|
||||||
protected override ChatThread ConvertToChatThread
|
protected override ChatThread ConvertToChatThread
|
||||||
{
|
{
|
||||||
@ -165,6 +165,7 @@ public partial class DocumentAnalysisAssistant : AssistantBaseCore<NoSettingsPan
|
|||||||
|
|
||||||
protected override void ResetForm()
|
protected override void ResetForm()
|
||||||
{
|
{
|
||||||
|
this.loadedDocumentPaths.Clear();
|
||||||
if (!this.MightPreselectValues())
|
if (!this.MightPreselectValues())
|
||||||
{
|
{
|
||||||
this.policyName = string.Empty;
|
this.policyName = string.Empty;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user