mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-09-19 12:43:36 +00:00
24 lines
1.3 KiB
Plaintext
24 lines
1.3 KiB
Plaintext
|
|
@using AIStudio.Settings
|
||
|
|
@using AIStudio.Provider
|
||
|
|
@inherits MSGComponentBase
|
||
|
|
|
||
|
|
<MudTooltip Text="@T("This data source is waiting to be indexed again. Until that is finished, it cannot be searched.")" Disabled="@(!this.IsAwaitingReindex)" RootStyle="display: block;" Placement="Placement.Top">
|
||
|
|
<MudListItem Value="@this.DataSource" Disabled="@this.IsAwaitingReindex">
|
||
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1" Style="min-width: 0; width: 100%;">
|
||
|
|
<MudText Typo="Typo.body2" Style="min-width: 0; white-space: normal; overflow-wrap: anywhere;">
|
||
|
|
@this.DataSource.Name
|
||
|
|
</MudText>
|
||
|
|
@if (this.DataSource is IInternalDataSource internalSource)
|
||
|
|
{
|
||
|
|
<MudSpacer/>
|
||
|
|
@if (this.IsAwaitingReindex)
|
||
|
|
{
|
||
|
|
<MudIcon Icon="@Icons.Material.Filled.HourglassTop" Size="Size.Small" Color="Color.Warning" Style="flex-shrink: 0;"/>
|
||
|
|
}
|
||
|
|
<MudTooltip Text="@internalSource.ConfidenceLevel.GetName()">
|
||
|
|
<MudIcon Icon="@Icons.Material.Filled.Security" Size="Size.Small" Class="confidence-icon" Style="@this.GetConfidenceIconStyle(internalSource)"/>
|
||
|
|
</MudTooltip>
|
||
|
|
}
|
||
|
|
</MudStack>
|
||
|
|
</MudListItem>
|
||
|
|
</MudTooltip>
|