Merge branch 'main' of https://git.azuze.fr/kawa/SharepointToolbox-Web
This commit is contained in:
@@ -17,11 +17,8 @@
|
||||
<div style="display:grid;grid-template-columns:1fr 1fr;gap:16px">
|
||||
<div class="card">
|
||||
<div class="card-title">Capture Template</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label">Source Site URL</label>
|
||||
<input class="form-input" @bind="_captureUrl" placeholder="@Session.CurrentProfile!.TenantUrl" />
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<SitePicker Profile="Session.CurrentProfile!" @bind-SelectedSites="_captureSites" Single="true" />
|
||||
<div class="form-group mt-8">
|
||||
<label class="form-label">Template Name</label>
|
||||
<input class="form-input" @bind="_captureName" placeholder="My Template" />
|
||||
</div>
|
||||
@@ -88,7 +85,8 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private string _captureUrl = string.Empty, _captureName = string.Empty;
|
||||
private List<SiteInfo> _captureSites = new();
|
||||
private string _captureName = string.Empty;
|
||||
private bool _capLibraries = true, _capFolders = true, _capGroups = true;
|
||||
private SiteTemplate? _selectedTemplate;
|
||||
private string _newTitle = string.Empty, _newAlias = string.Empty, _adminUrl = string.Empty;
|
||||
@@ -105,7 +103,7 @@
|
||||
{
|
||||
_error = string.Empty; _successMsg = string.Empty; _running = true;
|
||||
_cts = new CancellationTokenSource();
|
||||
var siteUrl = string.IsNullOrWhiteSpace(_captureUrl) ? Session.CurrentProfile!.TenantUrl : _captureUrl.Trim();
|
||||
var siteUrl = _captureSites.FirstOrDefault()?.Url ?? Session.CurrentProfile!.TenantUrl;
|
||||
var progress = new Progress<OperationProgress>(p => { _status = p.Message; InvokeAsync(StateHasChanged); });
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user