Skip to content

Commit a822d02

Browse files
Stop user from editing disabled categories
This should reduce the overwhelm of the UI a bit and make it clearer how it works together.
1 parent 9454d76 commit a822d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JournalApp/Pages/ManageCategoriesPage.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
Color="Color.Primary" Style="margin-right: -2px;" aria-label="Show in home" />
3535

3636
<MudButton Class="manage-category-edit-button"
37-
Variant="Variant.Text" OnClick="async () => await Edit(c)" Disabled="c.ReadOnly"
37+
Variant="Variant.Text" OnClick="async () => await Edit(c)" Disabled="c.ReadOnly || !c.Enabled"
3838
StartIcon="@Icons.Material.Rounded.Edit" Size="Size.Large" aria-label="Make changes">@c.Name</MudButton>
3939
</div>
4040
}

0 commit comments

Comments
 (0)