Archive stores and apps (#5296)

* Add flags and migration

* Archive store

* Archive apps
This commit is contained in:
d11n
2023-09-11 02:59:17 +02:00
committed by GitHub
parent 089e16020e
commit 57bc90ad03
40 changed files with 545 additions and 114 deletions

View File

@@ -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; }

View File

@@ -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; }

View 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; }
}