bug fixes
This commit is contained in:
		| @ -52,7 +52,7 @@ | ||||
|     public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Admin; } } | ||||
|  | ||||
|     List<Folder> Folders; | ||||
|     int folderid; | ||||
|     int folderid = -1; | ||||
|     List<File> Files; | ||||
|     Uri uri; | ||||
|  | ||||
| @ -61,7 +61,7 @@ | ||||
|         try | ||||
|         { | ||||
|             Folders = await FolderService.GetFoldersAsync(PageState.Site.SiteId); | ||||
|             if (Folders.Count > 0) | ||||
|             if (folderid == -1 && Folders.Count > 0) | ||||
|             { | ||||
|                 folderid = Folders[0].FolderId; | ||||
|                 await GetFiles(); | ||||
|  | ||||
| @ -48,14 +48,6 @@ | ||||
|                 <input class="form-control" @bind="@displayname" /> | ||||
|             </td> | ||||
|         </tr> | ||||
|         <tr> | ||||
|             <td> | ||||
|                 <label for="Name" class="control-label">Photo: </label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <FileManager @ref="filemanager" /> | ||||
|             </td> | ||||
|         </tr> | ||||
|  | ||||
|         @foreach (Profile profile in profiles) | ||||
|         { | ||||
| @ -91,7 +83,6 @@ | ||||
|     string confirm = ""; | ||||
|     string email = ""; | ||||
|     string displayname = ""; | ||||
|     FileManager filemanager; | ||||
|     List<Profile> profiles; | ||||
|     Dictionary<string, string> settings; | ||||
|     string category = ""; | ||||
| @ -125,11 +116,6 @@ | ||||
|                     user.Email = email; | ||||
|                     user.DisplayName = string.IsNullOrWhiteSpace(displayname) ? username : displayname; | ||||
|                     user.PhotoFileId = null; | ||||
|                     int photofileid = filemanager.GetFileId(); | ||||
|                     if (photofileid != -1) | ||||
|                     { | ||||
|                         user.PhotoFileId = photofileid; | ||||
|                     } | ||||
|  | ||||
|                     user = await UserService.AddUserAsync(user); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker