Server Settings: Consolidate Storage and Files (#3863)

* Server Settings: Consolidate Storage and Files

* Improve storage options name display

* Remove file services from services page

* Remove more code
This commit is contained in:
d11n
2022-06-15 14:06:16 +02:00
committed by GitHub
parent 346821f0d6
commit c56821300a
11 changed files with 63 additions and 86 deletions

View File

@@ -236,10 +236,10 @@ namespace BTCPayServer.Controllers
if (forceChoice || savedSettings == null)
{
var providersList = _StorageProviderServices.Select(a =>
new SelectListItem(a.StorageProvider().ToString(), a.StorageProvider().ToString())
new SelectListItem(typeof(StorageProvider).DisplayName(a.StorageProvider().ToString()), a.StorageProvider().ToString())
);
return View(new ChooseStorageViewModel()
return View(new ChooseStorageViewModel
{
ProvidersList = providersList,
ShowChangeWarning = savedSettings != null,