This commit is contained in:
2026-06-02 17:39:58 +02:00
36 changed files with 2520 additions and 463 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
@inject ILibraryDiscoveryService LibraryDiscovery
@inject TranslationSource T
@* Library name field with a picker: type a title, or click Browse to load and
choose from the libraries on the selected site. *@
@@ -13,7 +14,7 @@
<button type="button" class="btn btn-secondary"
@onclick="Browse"
disabled="@(Disabled || _loading)">
@(_loading ? "Loading…" : "Browse")
@(_loading ? T["librarypicker.loadingShort"] : T["librarypicker.browse"])
</button>
</div>
@@ -36,7 +37,7 @@
}
@if (_libraries.Count == 0)
{
<div class="text-muted" style="padding:6px">No document libraries found on this site.</div>
<div class="text-muted" style="padding:6px">@T["librarypicker.noLibraries"]</div>
}
</div>
}
@@ -65,7 +66,7 @@
private async Task Browse()
{
_error = string.Empty;
if (string.IsNullOrWhiteSpace(SiteUrl)) { _error = "Select a site first."; return; }
if (string.IsNullOrWhiteSpace(SiteUrl)) { _error = T["librarypicker.selectSiteFirst"]; return; }
// Toggle closed if already showing the list for this site.
if (_open && _loadedForSite == SiteUrl) { _open = false; return; }