Merge pull request #293 from Moonlight-Panel/SmallFixes

Some small fixes
This commit is contained in:
Marcel Baumgartner 2023-08-28 16:29:54 +02:00 committed by GitHub
commit 6da8393612
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 3 deletions

View file

@ -111,6 +111,8 @@
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/toastr.min.js"></script>
<script src="/assets/js/apexcharts.js"></script>
<script src="/_content/BlazorMonaco/lib/monaco-editor/min/vs/loader.js"></script>
<script>require.config({ paths: { 'vs': '/_content/BlazorMonaco/lib/monaco-editor/min/vs' } });</script>
<script src="/_content/BlazorMonaco/lib/monaco-editor/min/vs/editor/editor.main.js"></script>
@ -122,8 +124,7 @@
moonlight.loading.registerXterm();
</script>
<script src="/_content/Blazor-ApexCharts/js/apex-charts.min.js"></script>
<script src="/_content/Blazor-ApexCharts/js/blazor-apex-charts.js"></script>
<script src="_content/Blazor-ApexCharts/js/blazor-apex-charts.js"></script>
<script src="/_framework/blazor.server.js"></script>

View file

@ -60,7 +60,7 @@
<WButton Text="@(SmartTranslateService.Translate("Start scan"))"
CssClasses="btn-success me-3"
OnClick="MalwareBackgroundScanService.Start">
OnClick="Scan">
</WButton>
<WButton Text="@(SmartTranslateService.Translate("Purge page"))"
@ -206,4 +206,11 @@
await ToastService.RemoveProcessToast("purgeProcess");
await ToastService.Success($"Successfully purged {servers} servers by {users} users");
}
private async Task Scan()
{
ScanResults.Clear();
await InvokeAsync(StateHasChanged);
await MalwareBackgroundScanService.Start();
}
}

File diff suppressed because one or more lines are too long