#225 bugs fixed and finalized
This commit is contained in:
parent
1526b9f885
commit
603c1f38d1
@ -20,14 +20,14 @@
|
||||
</tr>
|
||||
@foreach (var job in Model.Jobs)
|
||||
{
|
||||
<tr id="#tr-@job.Id">
|
||||
<tr id="tr-@job.Id">
|
||||
<td>@job.Name</td>
|
||||
<td>@job.StartTime</td>
|
||||
<td>@job.Step</td>
|
||||
<td>@job.Progress</td>
|
||||
<td>@job.Succeeded</td>
|
||||
<td>@job.Exception</td>
|
||||
<td><a role="button" onclick="deleteLongRunningJob(@job.Id)" class="actionlink" title="حذف">🗑</a></td>
|
||||
<td><a role="button" onclick="deleteLongRunningJob('@job.Id')" class="actionlink" title="حذف">🗑</a></td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using GanjooRazor.Utils;
|
||||
@ -42,7 +43,7 @@ namespace GanjooRazor.Areas.Admin.Pages
|
||||
return new JsonResult(true);
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnDeleteAsync(int id)
|
||||
public async Task<IActionResult> OnDeleteAsync(Guid id)
|
||||
{
|
||||
using (HttpClient secureClient = new HttpClient())
|
||||
{
|
||||
|
||||
@ -57,7 +57,6 @@ namespace RSecurityBackend.Controllers
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete]
|
||||
[Route("{id}")]
|
||||
[Authorize(Policy = SecurableItem.AuditLogEntityShortName + ":" + SecurableItem.ViewOperationShortName)]
|
||||
[ProducesResponseType((int)HttpStatusCode.OK)]
|
||||
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user