Preparata procedura fix missing (da testare)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>WebDoorCreator - Egalware</i>
|
||||
<h4>Version: 0.9.2406.1916</h4>
|
||||
<h4>Version: 0.9.2406.1918</h4>
|
||||
<br /> Release note:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
0.9.2406.1916
|
||||
0.9.2406.1918
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>0.9.2406.1916</version>
|
||||
<version>0.9.2406.1918</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -74,6 +74,10 @@
|
||||
<div class="d-flex justify-content-between">
|
||||
<div>
|
||||
<button type="button" class="btn btn-sm btn-outline-success" @onclick="()=>updateNumMissing()" title="Check missing template">@tplMissing missing</button>
|
||||
@if(numTplMissing>0)
|
||||
{
|
||||
<button type="button" class="btn btn-sm btn-success" @onclick="()=>fixMissing()" title="Fix missing components template file">FIX missing</button>
|
||||
}
|
||||
</div>
|
||||
@if (searchRecords != null && searchRecords.Count() > 0)
|
||||
{
|
||||
|
||||
@@ -212,7 +212,18 @@ namespace WebDoorCreator.UI.Components.FilesMan
|
||||
protected async Task updateNumMissing()
|
||||
{
|
||||
isLoading = true;
|
||||
numTplMissing = await WDCService.CountMissingTemplate(rootPathCur);
|
||||
numTplMissing = await WDCService.CompoCountMissing(rootPathCur);
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sistema i componenti missing creando file (vuoti) corrispondenti a quanto trovato sul DB
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
protected async Task fixMissing()
|
||||
{
|
||||
isLoading = true;
|
||||
bool done = await WDCService.CompoFixMissing(rootPathCur);
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>0.9.2406.1916</Version>
|
||||
<Version>0.9.2406.1918</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608</UserSecretsId>
|
||||
</PropertyGroup>
|
||||
|
||||
Reference in New Issue
Block a user