mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
UI changes
Removes the separate column for view style and instead appends it to the App Type column.
This commit is contained in:
parent
e914c84ad3
commit
be7cef29d8
@ -73,8 +73,6 @@ namespace BTCPayServer.Controllers
|
||||
return app.StoreName;
|
||||
case nameof(app.AppType):
|
||||
return app.AppType;
|
||||
case nameof(app.ViewStyle):
|
||||
return app.ViewStyle;
|
||||
default:
|
||||
return app.Id;
|
||||
}
|
||||
|
@ -5,7 +5,6 @@
|
||||
var storeNameSortOrder = (string)ViewData["StoreNameSortOrder"];
|
||||
var appNameSortOrder = (string)ViewData["AppNameSortOrder"];
|
||||
var appTypeSortOrder = (string)ViewData["AppTypeSortOrder"];
|
||||
var viewStyleSortOrder = (string)ViewData["ViewStyleSortOrder"];
|
||||
var sortByDesc = "Sort by descending...";
|
||||
var sortByAsc = "Sort by ascending...";
|
||||
}
|
||||
@ -69,18 +68,6 @@
|
||||
<span class="fa @(appTypeSortOrder == "asc" ? "fa-sort-alpha-desc" : appTypeSortOrder == "desc" ? "fa-sort-alpha-asc" : "fa-sort")" />
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a
|
||||
asp-action="ListApps"
|
||||
asp-route-sortOrder="@(viewStyleSortOrder ?? "asc")"
|
||||
asp-route-sortOrderColumn="ViewStyle"
|
||||
class="text-nowrap"
|
||||
title="@(viewStyleSortOrder == "desc" ? sortByDesc : sortByAsc)"
|
||||
>
|
||||
View Style
|
||||
<span class="fa @(viewStyleSortOrder == "asc" ? "fa-sort-alpha-desc" : viewStyleSortOrder == "desc" ? "fa-sort-alpha-asc" : "fa-sort")" />
|
||||
</a>
|
||||
</th>
|
||||
<th style="text-align:right">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -99,8 +86,15 @@
|
||||
}
|
||||
</td>
|
||||
<td>@app.AppName</td>
|
||||
<td>@typeof(AppType).DisplayName(app.AppType)</td>
|
||||
<td>@app.ViewStyle</td>
|
||||
<td>
|
||||
@typeof(AppType).DisplayName(app.AppType)
|
||||
@if (app.AppType != AppType.Crowdfund.ToString())
|
||||
{
|
||||
<span>-</span>
|
||||
}
|
||||
|
||||
@app.ViewStyle
|
||||
</td>
|
||||
<td style="text-align:right">
|
||||
@if (app.IsOwner)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user