Merge branch 'main' of https://git.azuze.fr/kawa/SharepointToolbox-Web
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user