From af6ed78b8e3e1954485c4b35aaee1ab822b5dfa4 Mon Sep 17 00:00:00 2001 From: Leigh Pointer Date: Wed, 22 Jan 2025 07:57:52 +0100 Subject: [PATCH] Update ActionDialog.razor --- .../Modules/Controls/ActionDialog.razor | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Oqtane.Client/Modules/Controls/ActionDialog.razor b/Oqtane.Client/Modules/Controls/ActionDialog.razor index 6a1e4fb5..09e93225 100644 --- a/Oqtane.Client/Modules/Controls/ActionDialog.razor +++ b/Oqtane.Client/Modules/Controls/ActionDialog.razor @@ -22,9 +22,9 @@ @@ -66,12 +66,12 @@ else {
- +
}
- +
@@ -128,6 +128,12 @@ else [Parameter] public string Class { get; set; } // optional + [Parameter] + public string ConfirmClass { get; set; } // optional - for Confirm modal button + + [Parameter] + public string CancelClass { get; set; } // optional - for Cancel modal button + [Parameter] public bool Disabled { get; set; } // optional @@ -168,6 +174,16 @@ else Class = "btn btn-success"; } + if (string.IsNullOrEmpty(ConfirmClass)) + { + ConfirmClass = Class; + } + + if (string.IsNullOrEmpty(CancelClass)) + { + CancelClass = "btn btn-secondary"; + } + if (!string.IsNullOrEmpty(EditMode)) { _editmode = bool.Parse(EditMode);