...
This commit is contained in:
@@ -151,24 +151,30 @@
|
||||
<td><button type="button" class="btn btn-link disabled">...</button></td>
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if (id > 0 /* || item.ToString() == "Shared.DTOs.Warehouse.CirculationDto" */)
|
||||
string Title = "ویرایش";
|
||||
if (id > 0 || item.ToString() == "Shared.DTOs.Warehouse.CirculationDto" )
|
||||
{
|
||||
if (item.ToString() == "Shared.DTOs.Warehouse.CirculationDto")
|
||||
{
|
||||
Title = "انتخاب";
|
||||
}
|
||||
if (OnMultipleOfThree.HasValue)
|
||||
{
|
||||
<td><button @onclick="()=>OnMultipleOfThree.Value.InvokeAsync(Convert.ToInt32(id))" type="button" class="btn btn-link">ویرایش</button></td>
|
||||
<td><button @onclick="()=>OnMultipleOfThree.Value.InvokeAsync(Convert.ToInt32(id))" type="button" class="btn btn-link">@Title</button></td>
|
||||
|
||||
}
|
||||
else if (OnMultipleOfThreeGeneric.HasValue)
|
||||
{
|
||||
<td><button @onclick="()=>OnMultipleOfThreeGeneric.Value.InvokeAsync(item)" type="button" class="btn btn-link">ویرایش</button></td>
|
||||
<td><button @onclick="()=>OnMultipleOfThreeGeneric.Value.InvokeAsync(item)" type="button" class="btn btn-link">@Title</button></td>
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<td><button type="button" class="btn btn-link disabled">ویرایش</button></td>
|
||||
<td><button type="button" class="btn btn-link disabled">@Title</button></td>
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user