Remove decode button from MMC.

This commit is contained in:
2019-11-16 00:44:14 +00:00
parent 630d324b07
commit 8e881abcd9
3 changed files with 1 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
@@ -80,8 +79,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
return RedirectToAction(nameof(Index));
}
public IActionResult Decode(int id) => throw new NotImplementedException();
public async Task<IActionResult> Clean()
{
_context.Mmc.RemoveRange(_context.Mmc.Where(m => m.FeaturesId == null && m.ModeSense2AData == null));

View File

@@ -44,6 +44,7 @@
<a asp-action="Index" asp-controller="Medias">Media types detected</a>
<a asp-action="Index" asp-controller="Medias" asp-route-real="true">Media types detected in real devices</a>
<a asp-action="Index" asp-controller="Medias" asp-route-real="false">Media types detected in images</a>
<a asp-action="Index" asp-controller="Mmc">MODE SENSE page 2Ah responses</a>
<a asp-action="Index" asp-controller="OperatingSystems">Operating systems detected</a>
<a asp-action="Index" asp-controller="Partitions">Partitioning schemes detected</a>
<a asp-action="Index" asp-controller="Versions">DiscImageChef versions used</a>

View File

@@ -70,11 +70,6 @@
@Html.DisplayFor(modelItem => item.DataLength)
</td>
<td>
@if (item.FeaturesId == null &&
item.DataLength > 0)
{
<a asp-action="Decode" asp-route-id="@item.Id" class="btn btn-secondary">Decode</a>
}
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>