mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 01:27:21 +00:00
Upgraded to MudBlazor 9 (#1137)
This commit is contained in:
1 parent
e0337a99bc
commit
aeba1fbccc
625 files changed
+408
-882
No files matched your search
@@ -104,7 +104,7 @@
|
||||
<MudTextField T="string" @bind-Text="@this.editor.Author" Label="@T("Author (optional)")" Variant="Variant.Outlined" Disabled="@this.IsCurrentBusy" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
||||
</MudItem>
|
||||
</MudGrid>
|
||||
<MudTextField T="string" @bind-Text="@this.editor.Instruction" Label="@T("Briefing scope, notes, or current change instruction (optional)")" Variant="Variant.Outlined" AutoGrow="true" Lines="3" Class="mt-3" Disabled="@this.IsCurrentBusy" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
||||
<MudTextField T="string" @bind-Text="@this.editor.Instruction" Label="@T("Briefing scope, notes, or current change instruction (optional)")" Variant="Variant.Outlined" Sizing="InputSizing.Auto" Lines="3" Class="mt-3" Disabled="@this.IsCurrentBusy" UserAttributes="@USER_INPUT_ATTRIBUTES"/>
|
||||
|
||||
<EnumSelection T="VisualBriefingProtectionLevel"
|
||||
NameFunc="@this.ProtectionLevelName"
|
||||
|
||||
+6
-5
@@ -37,7 +37,7 @@ public partial class VisualBriefingAssistant
|
||||
if (selected is not null)
|
||||
await this.ApplySelectedProjectAsync(selected);
|
||||
else
|
||||
this.ClearSelectedProject();
|
||||
await this.ClearSelectedProjectAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -150,7 +150,7 @@ public partial class VisualBriefingAssistant
|
||||
this.BuildOrchestrator.ForgetBriefing(id);
|
||||
this.BuildProgressService.Forget(id);
|
||||
|
||||
this.ClearSelectedProject();
|
||||
await this.ClearSelectedProjectAsync();
|
||||
|
||||
await this.ReloadListAsync();
|
||||
}
|
||||
@@ -296,14 +296,14 @@ public partial class VisualBriefingAssistant
|
||||
}
|
||||
|
||||
await this.Store.RememberSelectionAsync(project.BriefingId);
|
||||
this.ClearSelectedProject();
|
||||
await this.ClearSelectedProjectAsync();
|
||||
this.selectedProject = project;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears editor-only state so an unavailable project cannot trigger saves or background work.
|
||||
/// </summary>
|
||||
private void ClearSelectedProject()
|
||||
private async Task ClearSelectedProjectAsync()
|
||||
{
|
||||
this.selectedProject = null;
|
||||
this.selectedBriefing = null;
|
||||
@@ -316,7 +316,8 @@ public partial class VisualBriefingAssistant
|
||||
this.lastPersistedState = string.Empty;
|
||||
this.formIssues = [];
|
||||
this.formValidationPending = false;
|
||||
this.visualBriefingForm?.ResetValidation();
|
||||
if (this.visualBriefingForm is not null)
|
||||
await this.visualBriefingForm.ResetValidationAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -203,7 +203,7 @@ public partial class VisualBriefingAssistant : MSGComponentBase
|
||||
if (this.formValidationPending && this.visualBriefingForm is not null)
|
||||
{
|
||||
this.formValidationPending = false;
|
||||
await this.visualBriefingForm.Validate();
|
||||
await this.visualBriefingForm.ValidateAsync();
|
||||
}
|
||||
|
||||
if (this.selectedBriefing is null || this.IsCurrentBusy)
|
||||
|
||||
Reference in new issue
Block a user