Skip to content

Commit

Permalink
Fix wrong cancel text
Browse files Browse the repository at this point in the history
Replace increment with add
  • Loading branch information
b-straub committed Jun 15, 2024
1 parent c4ac037 commit 68f68be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RxMudBlazorLightTestBase/Components/ButtonTest.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<MudButtonRx Color="Color.Primary" Variant="Variant.Filled" StateCommand=@Service.Command ExecuteCallback=@Service.IncrementCounter CanChangeCallback=@Service.IncrementStateCanChange ConfirmExecutionAsync=@ConfirmIncrement>Increment</MudButtonRx>
<MudButtonRx Color="Color.Primary" Variant="Variant.Filled" StateCommand=@Service.Command ExecuteCallback=@(Service.AddToCounter(5))>Add 5</MudButtonRx>
<MudButtonAsyncRx Color="Color.Secondary" Variant="Variant.Filled" StateCommand=@Service.CommandAsync ExecuteAsyncCallback=@Service.IncrementCounterAsync CanChangeCallback=@Service.IncrementStateCanChange>IncrementAsync</MudButtonAsyncRx>
<MudButtonAsyncRx Color="Color.Secondary" Variant="Variant.Filled" StateCommand=@Service.CancellableCommandAsync ExecuteAsyncCallback=@(Service.AddToCounterAsync(2)) CanChangeCallback=@(Service.CounterCanChangeLowerBound(4)) CancelText="Cancel Increment">Add Async 2</MudButtonAsyncRx>
<MudButtonAsyncRx Color="Color.Secondary" Variant="Variant.Filled" StateCommand=@Service.CancellableCommandAsync ExecuteAsyncCallback=@(Service.AddToCounterAsync(2)) CanChangeCallback=@(Service.CounterCanChangeLowerBound(4)) CancelText="Cancel Add">Add Async 2</MudButtonAsyncRx>
<MudButtonAsyncRx Color="Color.Secondary" Variant="Variant.Filled" StateCommand=@Service.CancellableCommandAsync ExecuteAsyncCallback=@DoPrepareAddAsync DeferredNotification=@true CancelColor=Color.Error CancelText="Cancel Add">
AddWithConfirmAsync 10
</MudButtonAsyncRx>
Expand Down

0 comments on commit 68f68be

Please sign in to comment.