Skip to content

Commit a8c9ed3

Browse files
committed
#2239 add confirm window for purging
1 parent 8f431fb commit a8c9ed3

File tree

1 file changed

+12
-3
lines changed
  • Console/BExIS.Web.Shell/Areas/SAM/BExIS.Modules.Sam.UI/Views/Datasets

1 file changed

+12
-3
lines changed

Console/BExIS.Web.Shell/Areas/SAM/BExIS.Modules.Sam.UI/Views/Datasets/Index.cshtml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@
7777
@Html.ActionLink("Sync", "Sync", new { id = entity.Id, area = "Sam" }, new { @style = entity.IsSynced ? "color:darkgreen;" : "color:black;" }) |
7878
@Html.ActionLink("Versions", "Versions", new { id = entity.Id, area = "Sam" }) |
7979
@Html.ActionLink("Delete", "Delete", new { id = entity.Id, area = "Sam" }) |
80-
@Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }) |
80+
@Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }, new
81+
{
82+
@onclick = "return confirm('Are you sure you want to remove this entity from the database?');", // HTML attributes
83+
}) |
8184
<a entityid="@entity.Id" class="number-of-rows-bt">Count</a>
8285
</td>
8386
}
@@ -97,7 +100,10 @@
97100
<td>
98101
@Html.ActionLink("Sync", "Sync", new { id = entity.Id, area = "Sam" }, new { @style = entity.IsSynced ? "color:darkgreen;" : "color:black;" }) |
99102
@Html.ActionLink("Versions", "Versions", new { id = entity.Id, area = "Sam" }) |
100-
@Html.ActionLink("Purge", "Purge", new { id = entity.Id })|
103+
@Html.ActionLink("Purge", "Purge", new { id = entity.Id }, new
104+
{
105+
@onclick = "return confirm('Are you sure you want to remove this entity from the database?');", // HTML attributes
106+
})|
101107
<a entityid="@entity.Id" class="number-of-rows-bt">Count</a>
102108
</td>
103109
}
@@ -119,7 +125,10 @@
119125
@Html.ActionLink("Sync", "Sync", new { id = entity.Id, area = "Sam" }, new { @style = entity.IsSynced ? "color:darkgreen;" : "color:black;" }) |
120126
@Html.ActionLink("Versions", "Versions", new { id = entity.Id, area = "Sam" }) |
121127
@Html.ActionLink("Undo delete", "UndoDelete", new { id = entity.Id, area = "Sam" }) |
122-
@Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }) |
128+
@Html.ActionLink("Purge", "Purge", new { id = entity.Id, area = "Sam" }, new
129+
{
130+
@onclick = "return confirm('Are you sure you want to remove this entity from the database?');", // HTML attributes
131+
})|
123132
<a entityid="@entity.Id" class="number-of-rows-bt">Count</a>
124133
</td>
125134
}

0 commit comments

Comments
 (0)