-
diff --git a/LinkDotNet.Blog.Web/Shared/ConfirmDialog.razor b/LinkDotNet.Blog.Web/Shared/ConfirmDialog.razor
index f8c26410..4b2b82b1 100644
--- a/LinkDotNet.Blog.Web/Shared/ConfirmDialog.razor
+++ b/LinkDotNet.Blog.Web/Shared/ConfirmDialog.razor
@@ -1,8 +1,8 @@
@Content
- Ok
- Cancel
+ Ok
+ Cancel
@@ -15,10 +15,7 @@
[Parameter]
public EventCallback OnYesPressed { get; set; }
-
- [Parameter]
- public EventCallback OnNoPressed { get; set; }
-
+
private ModalDialog ModalDialog { get; set; }
private async Task OnYesButtonPressed()
@@ -27,13 +24,14 @@
await OnYesPressed.InvokeAsync();
}
- private void OnNoButtonPressed()
+ public void Open()
{
- ModalDialog.Close();
+ ModalDialog.Open();
}
- public void Open()
+ private void OnNoButtonPressed()
{
- ModalDialog.Open();
+ ModalDialog.Close();
}
+
}
\ No newline at end of file