mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-27 23:59:48 +00:00
Update the localized content section to use the total item count
This commit is contained in:
parent
9fee51551c
commit
78414f331e
@ -92,7 +92,7 @@ else if (!this.isLoading && string.IsNullOrWhiteSpace(this.loadingIssue))
|
|||||||
{
|
{
|
||||||
<hr style="width: 100%; border-width: 0.25ch;" class="mt-6 mb-6"/>
|
<hr style="width: 100%; border-width: 0.25ch;" class="mt-6 mb-6"/>
|
||||||
<MudText Typo="Typo.h6">
|
<MudText Typo="Typo.h6">
|
||||||
Localized Content (@this.localizedContent.Count entries of @this.addedContent.Count)
|
Localized Content (@this.localizedContent.Count entries of @this.NumTotalItems)
|
||||||
</MudText>
|
</MudText>
|
||||||
<MudTable Items="@this.localizedContent" Hover="@true" Filter="@this.FilterFunc" Class="border-dashed border rounded-lg mb-6">
|
<MudTable Items="@this.localizedContent" Hover="@true" Filter="@this.FilterFunc" Class="border-dashed border rounded-lg mb-6">
|
||||||
<ToolBarContent>
|
<ToolBarContent>
|
||||||
|
@ -248,7 +248,9 @@ public partial class AssistantI18N : AssistantBaseCore<SettingsDialogI18N>
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private int NumTotalItems => (this.selectedLanguagePlugin?.Content.Count ?? 0) + this.addedContent.Count - this.removedContent.Count;
|
||||||
|
|
||||||
private async Task LocalizeTextContent()
|
private async Task LocalizeTextContent()
|
||||||
{
|
{
|
||||||
await this.form!.Validate();
|
await this.form!.Validate();
|
||||||
|
Loading…
Reference in New Issue
Block a user