Add Created date to user, add verified column in list and make user list use same model as modern lists

This commit is contained in:
Kukks
2020-10-03 14:12:55 +02:00
parent 9daa424afd
commit 3d2b4cbfa8
13 changed files with 119 additions and 100 deletions

View File

@@ -3,6 +3,7 @@ using System.Reflection;
using BTCPayServer.Models;
using BTCPayServer.Models.InvoicingModels;
using BTCPayServer.Models.PaymentRequestViewModels;
using BTCPayServer.Models.ServerViewModels;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
@@ -18,6 +19,8 @@ namespace BTCPayServer
prop = typeof(UserPrefsCookie).GetProperty(nameof(UserPrefsCookie.InvoicesQuery));
else if (model is ListPaymentRequestsViewModel)
prop = typeof(UserPrefsCookie).GetProperty(nameof(UserPrefsCookie.PaymentRequestsQuery));
else if (model is UsersViewModel)
prop = typeof(UserPrefsCookie).GetProperty(nameof(UserPrefsCookie.UsersQuery));
else
throw new Exception("Unsupported BasePagingViewModel for cookie user preferences saving");
@@ -74,6 +77,7 @@ namespace BTCPayServer
public ListQueryDataHolder InvoicesQuery { get; set; }
public ListQueryDataHolder PaymentRequestsQuery { get; set; }
public ListQueryDataHolder UsersQuery { get; set; }
}
class ListQueryDataHolder