diff --git a/DataImport.Web/Features/DataMaps/AddEdit.cshtml b/DataImport.Web/Features/DataMaps/AddEdit.cshtml
index c7d27218..1d7a8548 100644
--- a/DataImport.Web/Features/DataMaps/AddEdit.cshtml
+++ b/DataImport.Web/Features/DataMaps/AddEdit.cshtml
@@ -104,7 +104,8 @@ See the LICENSE and NOTICES files in the project root for more information.
@Html.HiddenFor(m => m.ApiVersionId)
@Html.Display(m => m.ApiVersion)
@Html.Display(m => m.ResourceName)
- @Html.HiddenFor(m => m.ResourcePath)
+ @Html.HiddenFor(m => m.ResourcePath)
+ @Html.HiddenFor(m => m.IsDeleteOperation)
}
@@ -127,7 +128,18 @@ See the LICENSE and NOTICES files in the project root for more information.
- @Html.Input(m => m.IsDeleteOperation)
+ if (ControllerAction(Context.Request.RouteValues) == "Add" || Model.IsDeleteOperation)
+ {
+ @Html.Input(m => m.IsDeleteOperation, ControllerAction(Context.Request.RouteValues) == "Edit")
+ }
+ else
+ {
+
+ }