Skip to content

Commit 3853d68

Browse files
committed
Minor changes to disable buttons in the work instruction editor menus if there is no work instruction selected
1 parent e89b657 commit 3853d68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MESS/MESS.Blazor/Components/Pages/Phoebe/MenuBar/MenuBarPhoebe.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
<FluentDivider></FluentDivider>
4646
<FluentMenuItem OnClick="@ShowEditAssociationsDialog" Disabled="@(!HasInstruction)">Edit Product Associations</FluentMenuItem>
4747
<FluentDivider/>
48-
<FluentMenuItem OnClick="@(() => TriggerAndClose(OnNewPart))">New Part</FluentMenuItem>
49-
<FluentMenuItem OnClick="@(() => TriggerAndClose(OnNewStep))">New Step</FluentMenuItem>
48+
<FluentMenuItem OnClick="@(() => TriggerAndClose(OnNewPart))" Disabled="@(!HasInstruction)">New Part</FluentMenuItem>
49+
<FluentMenuItem OnClick="@(() => TriggerAndClose(OnNewStep))" Disabled="@(!HasInstruction)">New Step</FluentMenuItem>
5050
</FluentMenu>
5151
</div>
5252

@@ -82,7 +82,7 @@
8282
</div>
8383

8484
<div class="menu-right-content">
85-
<button class="btn-small" title="Version History" @onclick="ToggleVersionHistorySidebar">
85+
<button class="btn-small" title="Version History" disabled="@(!HasInstruction)" @onclick="ToggleVersionHistorySidebar">
8686
<i class="bi bi-clock-history"></i>
8787
</button>
8888
<div class="save-button-container">

0 commit comments

Comments
 (0)