Improving navigation between files and storage services and rewording info text

This commit is contained in:
rockstardev
2021-04-11 14:05:47 -05:00
parent ee0fa71605
commit 8f6048191d
2 changed files with 54 additions and 37 deletions

View File

@@ -30,13 +30,14 @@ namespace BTCPayServer.Controllers
{
var fileUrl = string.IsNullOrEmpty(fileId) ? null : await _FileService.GetFileUrl(Request.GetAbsoluteRootUri(), fileId);
return View(new ViewFilesViewModel()
var model = new ViewFilesViewModel()
{
Files = await _StoredFileRepository.GetFiles(),
SelectedFileId = string.IsNullOrEmpty(fileUrl) ? null : fileId,
DirectFileUrl = fileUrl,
StorageConfigured = (await _SettingsRepository.GetSettingAsync<StorageSettings>()) != null
});
};
return View(model);
}
[HttpGet("server/files/{fileId}/delete")]