mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 17:47: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
@@ -245,7 +245,7 @@ public partial class SlideAssistant
|
||||
this.LoadTemplate();
|
||||
this.ApplyPreselectedTemplateSlideUses();
|
||||
if (this.Form is not null)
|
||||
await this.Form.Validate();
|
||||
await this.Form.ValidateAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -299,9 +299,9 @@ public partial class SlideAssistant
|
||||
/// <returns>The name, or empty when the LLM decides, which it also does when the template has no layout of this name.</returns>
|
||||
private string LayoutNameOf(LayoutPurpose purpose) => this.template is not null && this.layoutNames.TryGetValue(purpose, out var name) && this.template.FindFamilyByName(name) is not null ? name : string.Empty;
|
||||
|
||||
private void SetLayoutName(LayoutPurpose purpose, string name)
|
||||
private void SetLayoutName(LayoutPurpose purpose, string? name)
|
||||
{
|
||||
if (name.Length == 0)
|
||||
if (string.IsNullOrEmpty(name))
|
||||
this.layoutNames.Remove(purpose);
|
||||
else
|
||||
this.layoutNames[purpose] = name;
|
||||
|
||||
Reference in new issue
Block a user