resolved a number of issues with site creation #224

This commit is contained in:
Shaun Walker
2020-02-25 18:53:36 -05:00
parent 15236d78d4
commit b4ddc45829
17 changed files with 264 additions and 163 deletions

View File

@ -44,14 +44,6 @@ else
<textarea class="form-control" @bind="@urls" rows="3" />
</td>
</tr>
<tr>
<td>
<label for="Name" class="control-label">Logo: </label>
</td>
<td>
<FileManager @ref="filemanager" />
</td>
</tr>
<tr>
<td>
<label for="Name" class="control-label">Default Theme: </label>
@ -130,7 +122,6 @@ else
string tenantid = "-1";
string name = "";
string urls = "";
FileManager filemanager;
string themetype = "";
string layouttype = "";
string containertype = "";
@ -210,6 +201,8 @@ else
if (isvalid)
{
ShowProgressIndicator();
List<Alias> aliases = new List<Alias>();
urls = urls.Replace("\n", ",");
foreach (string name in urls.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries))
@ -226,11 +219,6 @@ else
site.TenantId = int.Parse(tenantid);
site.Name = name;
site.LogoFileId = null;
int logofileid = filemanager.GetFileId();
if (logofileid != -1)
{
site.LogoFileId = logofileid;
}
site.DefaultThemeType = themetype;
site.DefaultLayoutType = (layouttype == null ? "" : layouttype);
site.DefaultContainerType = containertype;