Add settings to control patching functionality
parent
8a6c0b493b
commit
c725afc362
|
@ -16,6 +16,7 @@
|
|||
public LANCommanderTheme Theme { get; set; } = LANCommanderTheme.Light;
|
||||
|
||||
public LANCommanderAuthenticationSettings Authentication { get; set; } = new LANCommanderAuthenticationSettings();
|
||||
public LANCommanderArchiveSettings Archives { get; set; } = new LANCommanderArchiveSettings();
|
||||
public LANCommanderIPXRelaySettings IPXRelay { get; set; } = new LANCommanderIPXRelaySettings();
|
||||
}
|
||||
|
||||
|
@ -31,6 +32,11 @@
|
|||
public int PasswordRequiredLength { get; set; } = 8;
|
||||
}
|
||||
|
||||
public class LANCommanderArchiveSettings
|
||||
{
|
||||
public bool EnablePatching { get; set; } = false;
|
||||
}
|
||||
|
||||
public class LANCommanderIPXRelaySettings
|
||||
{
|
||||
public bool Enabled { get; set; } = false;
|
||||
|
|
|
@ -95,7 +95,9 @@
|
|||
|
||||
await LoadData();
|
||||
|
||||
if (lastArchive != null)
|
||||
var settings = SettingService.GetSettings();
|
||||
|
||||
if (lastArchive != null && settings.Archives.EnablePatching)
|
||||
BackgroundJob.Enqueue<PatchArchiveBackgroundJob>(x => x.Execute(lastArchive.Id, Archive.Id));
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<MenuItem RouterLink="/Settings/General">General</MenuItem>
|
||||
<MenuItem RouterLink="/Settings/Users">Users</MenuItem>
|
||||
<MenuItem RouterLink="/Settings/Authentication">Authentication</MenuItem>
|
||||
<MenuItem RouterLink="/Settings/Archives">Archives</MenuItem>
|
||||
<MenuItem RouterLink="/Settings/IPXRelay">IPX Relay</MenuItem>
|
||||
<MenuItem RouterLink="/Settings/Tools" RouterMatch="@NavLinkMatch.Prefix">Tools</MenuItem>
|
||||
</Menu>
|
||||
|
|
Loading…
Reference in New Issue