Skip to content

Commit 592d1fa

Browse files
author
dmk
committed
remove ok button from outer modal
1 parent 8f3df8d commit 592d1fa

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

TCBlazor/Client/Components/SpendingAddInModal.razor

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
@if (open)
77
{
8-
<Modal Title=@("Add spending")
8+
<Modal Title=@("Add spending x")
99
Visible="@open"
1010
Footer=@(footer)
11-
OnOk=@(async (e) => await SaveSpending(TheSpending))
11+
OnOk=@(async (e) => CloseModal())
1212
OnCancel=@((e) => CloseModal())
1313
DestroyOnClose=@true
1414
Closable=@true
@@ -45,7 +45,6 @@
4545
</div>
4646
<div>
4747
<Button OnClick=@((e) => CloseModal())>Cancel</Button>
48-
<Button Type="ButtonType.Primary" OnClick=@(async (e) => await SaveSpending(TheSpending))>OK</Button>
4948
</div>
5049
</div>;
5150

0 commit comments

Comments
 (0)