mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 20:12:26 -05:00 
			
		
		
		
	[frontend] Basic user moderation actions (#1728)
* remove info banner * update swagger definition for AccountAction * basic user view, suspend action * clean up suspended user display * basic user searching * rename User -> Account for clarity * refactor error boundary component to give better info * appease the linter
This commit is contained in:
		
					parent
					
						
							
								b47661f033
							
						
					
				
			
			
				commit
				
					
						89dcbd5a20
					
				
			
		
					 16 changed files with 419 additions and 37 deletions
				
			
		|  | @ -29,7 +29,7 @@ module.exports = function FakeProfile({ avatar, header, display_name, username, | |||
| 					<img src={header} alt={header ? `header image for ${username}` : "None set"} /> | ||||
| 				</div> | ||||
| 				<div className="basic-info" aria-hidden="true"> | ||||
| 					<a className="avatar" href="{{.account.Avatar}}"> | ||||
| 					<a className="avatar" href={avatar}> | ||||
| 						<img src={avatar} alt={avatar ? `avatar image for ${username}` : "None set"} /> | ||||
| 					</a> | ||||
| 					<span className="displayname text-cutoff"> | ||||
|  | @ -37,9 +37,9 @@ module.exports = function FakeProfile({ avatar, header, display_name, username, | |||
| 						<span className="sr-only">.</span> | ||||
| 					</span> | ||||
| 					<span className="username text-cutoff">@{username}</span> | ||||
| 					{(role && role != "user") && | ||||
| 						<div className={`role ${role}`}> | ||||
| 							<span className="sr-only">Role: </span>{role} | ||||
| 					{(role && role.name != "user") && | ||||
| 						<div className={`role ${role.name}`}> | ||||
| 							<span className="sr-only">Role: </span>{role.name} | ||||
| 						</div> | ||||
| 					} | ||||
| 				</div> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue