mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 07:00:20 +00:00 
			
		
		
		
	Started adding settings button
This commit is contained in:
		
							parent
							
								
									6fdf48f443
								
							
						
					
					
						commit
						4c1e3afb71
					
				@ -6,12 +6,23 @@
 | 
				
			|||||||
        @(this.Title)
 | 
					        @(this.Title)
 | 
				
			||||||
    </MudText>
 | 
					    </MudText>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <InnerScrolling>
 | 
					    <InnerScrolling>
 | 
				
			||||||
        <ChildContent>
 | 
					        <ChildContent>
 | 
				
			||||||
            <MudForm @ref="@(this.form)" @bind-IsValid="@(this.inputIsValid)" @bind-Errors="@(this.inputIssues)" FieldChanged="@this.TriggerFormChange" Class="pr-2">
 | 
					            <MudForm @ref="@(this.form)" @bind-IsValid="@(this.inputIsValid)" @bind-Errors="@(this.inputIssues)" FieldChanged="@this.TriggerFormChange" Class="pr-2">
 | 
				
			||||||
                <MudText Typo="Typo.body1" Align="Align.Justify" Class="mb-6">
 | 
					                <MudGrid Class="mb-2">
 | 
				
			||||||
                    @this.Description
 | 
					                    <MudItem xs="9">
 | 
				
			||||||
                </MudText>
 | 
					                        <MudText Typo="Typo.body1" Align="Align.Justify">
 | 
				
			||||||
 | 
					                            @this.Description
 | 
				
			||||||
 | 
					                        </MudText>
 | 
				
			||||||
 | 
					                    </MudItem>
 | 
				
			||||||
 | 
					                    <MudItem xs="3" Class="d-flex justify-end align-start">
 | 
				
			||||||
 | 
					                        <MudButton Variant="Variant.Filled" StartIcon="@Icons.Material.Filled.Settings">
 | 
				
			||||||
 | 
					                            Settings
 | 
				
			||||||
 | 
					                        </MudButton>
 | 
				
			||||||
 | 
					                    </MudItem>
 | 
				
			||||||
 | 
					                </MudGrid>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                @if (this.Body is not null)
 | 
					                @if (this.Body is not null)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
@ -22,6 +33,7 @@
 | 
				
			|||||||
                    <MudButton Disabled="@this.SubmitDisabled" Variant="Variant.Filled" Class="mb-3" OnClick="() => this.SubmitAction()" Style="@this.SubmitButtonStyle">
 | 
					                    <MudButton Disabled="@this.SubmitDisabled" Variant="Variant.Filled" Class="mb-3" OnClick="() => this.SubmitAction()" Style="@this.SubmitButtonStyle">
 | 
				
			||||||
                        @this.SubmitText
 | 
					                        @this.SubmitText
 | 
				
			||||||
                    </MudButton>
 | 
					                    </MudButton>
 | 
				
			||||||
 | 
					                    
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            </MudForm>
 | 
					            </MudForm>
 | 
				
			||||||
            <Issues IssuesData="@(this.inputIssues)"/>
 | 
					            <Issues IssuesData="@(this.inputIssues)"/>
 | 
				
			||||||
@ -112,6 +124,7 @@
 | 
				
			|||||||
                    </MudButton>
 | 
					                    </MudButton>
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                @if (this.ShowReset)
 | 
					                @if (this.ShowReset)
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    <MudButton Variant="Variant.Filled" Style="@this.GetResetColor()" StartIcon="@Icons.Material.Filled.Refresh" OnClick="() => this.InnerResetForm()">
 | 
					                    <MudButton Variant="Variant.Filled" Style="@this.GetResetColor()" StartIcon="@Icons.Material.Filled.Refresh" OnClick="() => this.InnerResetForm()">
 | 
				
			||||||
@ -128,6 +141,8 @@
 | 
				
			|||||||
                {
 | 
					                {
 | 
				
			||||||
                    <ProfileSelection MarginLeft="" @bind-CurrentProfile="@this.currentProfile"/>
 | 
					                    <ProfileSelection MarginLeft="" @bind-CurrentProfile="@this.currentProfile"/>
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
            </MudStack>
 | 
					            </MudStack>
 | 
				
			||||||
        </FooterContent>
 | 
					        </FooterContent>
 | 
				
			||||||
    </InnerScrolling>
 | 
					    </InnerScrolling>
 | 
				
			||||||
 | 
				
			|||||||
@ -89,6 +89,8 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    protected virtual bool ShowReset => true;
 | 
					    protected virtual bool ShowReset => true;
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    protected virtual bool ShowAssistantSettings => true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected virtual ChatThread ConvertToChatThread => this.chatThread ?? new();
 | 
					    protected virtual ChatThread ConvertToChatThread => this.chatThread ?? new();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected virtual IReadOnlyList<IButtonData> FooterButtons => [];
 | 
					    protected virtual IReadOnlyList<IButtonData> FooterButtons => [];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user