performance optimizations in site router and remove dependency between page and module in route specification

This commit is contained in:
Shaun Walker
2019-10-18 12:23:36 -04:00
parent 73feb1f93f
commit 1cc58ea150
22 changed files with 172 additions and 175 deletions

View File

@ -30,13 +30,14 @@
{
ShowProgressIndicator();
if (await FileService.UploadFilesAsync(PageState.Site.SiteRootPath, files, ""))
string result = await FileService.UploadFilesAsync(PageState.Site.SiteRootPath, files, "");
if (result == "")
{
AddModuleMessage("Files Uploaded Successfully", MessageType.Success);
}
else
{
AddModuleMessage("Upload Failed", MessageType.Error);
AddModuleMessage("Upload Failed For " + result.Replace(",",", ") + ". This Could Be Due To A Network Error Or Because A File Type Is Restricted.", MessageType.Error);
}
}
catch (Exception ex)

View File

@ -9,7 +9,7 @@
}
else
{
<ActionLink Action="Add" Text="Add File" Style="float: right; margin: 10px;" />
<ActionLink Action="Add" Text="Add Files" Style="float: right; margin: 10px;" />
<Pager Items="@Files">
<Header>