mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 07:34:26 +01:00
Archive stores and apps (#5296)
* Add flags and migration * Archive store * Archive apps
This commit is contained in:
@@ -21,6 +21,7 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
public DateTimeOffset Created { get; set; }
|
||||
public AppData App { get; set; }
|
||||
public StoreRepository.StoreRole Role { get; set; }
|
||||
public bool Archived { get; set; }
|
||||
}
|
||||
|
||||
public ListAppViewModel[] Apps { get; set; }
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace BTCPayServer.Models.StoreViewModels
|
||||
|
||||
public bool CanDelete { get; set; }
|
||||
|
||||
public bool Archived { get; set; }
|
||||
|
||||
[Display(Name = "Allow anyone to create invoice")]
|
||||
public bool AnyoneCanCreateInvoice { get; set; }
|
||||
|
||||
|
||||
16
BTCPayServer/Models/StoreViewModels/ListStoresViewModel.cs
Normal file
16
BTCPayServer/Models/StoreViewModels/ListStoresViewModel.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace BTCPayServer.Models.StoreViewModels;
|
||||
|
||||
public class ListStoresViewModel
|
||||
{
|
||||
public class StoreViewModel
|
||||
{
|
||||
public string StoreName { get; set; }
|
||||
public string StoreId { get; set; }
|
||||
public bool Archived { get; set; }
|
||||
}
|
||||
|
||||
public List<StoreViewModel> Stores { get; set; } = new ();
|
||||
public bool Archived { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user