Skip to content

Commit 047becc

Browse files
committed
Adding Header to Export Dialog and Moving Download Button to the Dialog Footer
1 parent 5e0933d commit 047becc

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

MESS/MESS.Blazor/Components/Pages/Phoebe/WorkInstruction/Export/WorkInstructionExportButton.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@inject IToastService ToastService
55
@inject IJSRuntime JsRuntime
66

7-
<button class="btn btn-outline-secondary" type="button" @onclick="DownloadWorkInstruction" disabled="@_isLoading">
7+
<button class="btn btn-sm btn-outline-secondary" type="button" @onclick="DownloadWorkInstruction" disabled="@_isLoading">
88
Download
99
@if (_isLoading)
1010
{

MESS/MESS.Blazor/Components/Pages/Phoebe/WorkInstruction/Export/WorkInstructionExportDialog.razor

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@
33
@if (Visible)
44
{
55
<FluentDialog Open="@Visible" OnDismiss="Close">
6+
67
<FluentDialogHeader>
7-
Export Work Instruction
8+
<h5 class="fw-semibold text-dark mb-1">Export Work Instruction</h5>
9+
<FluentDivider></FluentDivider>
810
</FluentDialogHeader>
911
<FluentDialogBody>
10-
<p><strong>@WorkInstruction?.Title</strong> - Version @WorkInstruction?.Version</p>
12+
<p>@WorkInstruction?.Title - Version @WorkInstruction?.Version</p>
13+
</FluentDialogBody>
14+
<FluentDialogFooter>
1115
<WorkInstructionExportButton
1216
WorkInstruction="WorkInstruction"
1317
OnDownloadComplete="Close"
1418
OnDownloadStateChanged="HandleDownloadStateChanged" />
15-
</FluentDialogBody>
16-
<FluentDialogFooter>
17-
<FluentButton OnClick="Close" Appearance="Appearance.Neutral" Disabled="@_isDownloadInProgress">Cancel</FluentButton>
19+
<button type="button" class="btn btn-sm btn-outline-secondary" @onclick="Close">
20+
Cancel
21+
</button>
1822
</FluentDialogFooter>
1923
</FluentDialog>
2024
}

0 commit comments

Comments
 (0)