mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 20:49:39 +00:00
Refactored issue handling (#55)
This commit is contained in:
1 parent
b3b8bf23dc
commit
f3aa38e090
5 files changed
+28
-31
No files matched your search
@@ -0,0 +1,14 @@
|
||||
@if (this.IssuesData.Any())
|
||||
{
|
||||
<MudPaper Class="pa-3 mr-3 mt-3 border-dashed border rounded-lg mud-alert-outlined-error">
|
||||
<MudText Typo="Typo.h6">Issues</MudText>
|
||||
<MudList T="string">
|
||||
@foreach (var issue in this.IssuesData)
|
||||
{
|
||||
<MudListItem Icon="@Icons.Material.Filled.Error" IconColor="Color.Error">
|
||||
@issue
|
||||
</MudListItem>
|
||||
}
|
||||
</MudList>
|
||||
</MudPaper>
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Components.Blocks;
|
||||
|
||||
public partial class Issues : ComponentBase
|
||||
{
|
||||
[Parameter]
|
||||
public IEnumerable<string> IssuesData { get; set; } = [];
|
||||
}
|
||||
Reference in new issue
Block a user