mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 12:20:21 +00:00 
			
		
		
		
	Removed unused config. component
This commit is contained in:
		
							parent
							
								
									bb8a4d9cda
								
							
						
					
					
						commit
						ed04b3e025
					
				@ -1,7 +0,0 @@
 | 
				
			|||||||
@inherits ConfigurationBase
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
<MudField Label="@this.OptionDescription" Variant="Variant.Outlined" HelperText="@this.OptionHelp" Class="@MARGIN_CLASS">
 | 
					 | 
				
			||||||
    <MudButton Variant="Variant.Filled" StartIcon="@this.TriggerIcon" OnClick="@this.Click">
 | 
					 | 
				
			||||||
        @this.TriggerText
 | 
					 | 
				
			||||||
    </MudButton>
 | 
					 | 
				
			||||||
</MudField>
 | 
					 | 
				
			||||||
@ -1,24 +0,0 @@
 | 
				
			|||||||
using Microsoft.AspNetCore.Components;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
namespace AIStudio.Components;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
public partial class ConfigurationTrigger : ConfigurationBase
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    [Parameter]
 | 
					 | 
				
			||||||
    public string TriggerText { get; set; } = string.Empty;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    [Parameter]
 | 
					 | 
				
			||||||
    public string TriggerIcon { get; set; } = Icons.Material.Filled.AddBox;
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [Parameter]
 | 
					 | 
				
			||||||
    public Action OnClickSync { get; set; } = () => { };
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    [Parameter]
 | 
					 | 
				
			||||||
    public Func<Task> OnClickAsync { get; set; } = () => Task.CompletedTask;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    private async Task Click()
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        this.OnClickSync();
 | 
					 | 
				
			||||||
        await this.OnClickAsync();
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user