d69c3290d8
Reviewed-on: #2
23 lines
948 B
Plaintext
23 lines
948 B
Plaintext
@* Dropdown for choosing how multi-site reports are bundled on export. *@
|
|
@if (Visible)
|
|
{
|
|
<select class="form-select" style="width:auto;font-size:13px" value="@Value" @onchange="OnChange"
|
|
title="How to bundle reports when multiple sites are scanned">
|
|
<option value="@ReportMergeMode.SingleMerged">One document, no tabs</option>
|
|
<option value="@ReportMergeMode.SingleTabbed">One document, tabs (HTML)</option>
|
|
<option value="@ReportMergeMode.MultipleFiles">Multiple documents (ZIP)</option>
|
|
</select>
|
|
}
|
|
|
|
@code {
|
|
[Parameter] public ReportMergeMode Value { get; set; }
|
|
[Parameter] public EventCallback<ReportMergeMode> ValueChanged { get; set; }
|
|
[Parameter] public bool Visible { get; set; } = true;
|
|
|
|
private async Task OnChange(ChangeEventArgs e)
|
|
{
|
|
if (Enum.TryParse<ReportMergeMode>(e.Value?.ToString(), out var mode))
|
|
await ValueChanged.InvokeAsync(mode);
|
|
}
|
|
}
|