mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 02:52:26 -05:00 
			
		
		
		
	[chore] Disable Move API endpoints for now until Move is fully implemented in the backend (#2650)
* [chore] Disable Move API endpoints for now until Move is fully implemented in the backend * disable other form fields * clarify that moving to GtS also isn't implemented yet
This commit is contained in:
		
					parent
					
						
							
								d3f35e8eba
							
						
					
				
			
			
				commit
				
					
						83a4adbd95
					
				
			
		
					 3 changed files with 10 additions and 2 deletions
				
			
		|  | @ -31,6 +31,8 @@ import ( | ||||||
| // | // | ||||||
| // Move your account to another account. | // Move your account to another account. | ||||||
| // | // | ||||||
|  | // NOT IMPLEMENTED YET! | ||||||
|  | // | ||||||
| //	--- | //	--- | ||||||
| //	tags: | //	tags: | ||||||
| //	- accounts | //	- accounts | ||||||
|  |  | ||||||
|  | @ -113,5 +113,5 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H | ||||||
| 
 | 
 | ||||||
| 	// migration handlers | 	// migration handlers | ||||||
| 	attachHandler(http.MethodPost, AliasPath, m.AccountAliasPOSTHandler) | 	attachHandler(http.MethodPost, AliasPath, m.AccountAliasPOSTHandler) | ||||||
| 	attachHandler(http.MethodPost, MovePath, m.AccountMovePOSTHandler) | 	// attachHandler(http.MethodPost, MovePath, m.AccountMovePOSTHandler) // todo: enable this only when Move is completed | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -46,6 +46,10 @@ function UserMigrationForm({ data: profile }) { | ||||||
| 	return ( | 	return ( | ||||||
| 		<> | 		<> | ||||||
| 			<h2>Account Migration Settings</h2> | 			<h2>Account Migration Settings</h2> | ||||||
|  | 			<div className="info"> | ||||||
|  | 				<i className="fa fa-fw fa-exclamation-triangle" aria-hidden="true"></i> | ||||||
|  | 				<b>Moving your account to another instance, or moving an account from another instance to your account, isn't implemented yet! <a href="https://github.com/superseriousbusiness/gotosocial/issues/130" target="_blank" rel="noopener noreferrer">See here for progress</a>.</b> | ||||||
|  | 			</div> | ||||||
| 			<p> | 			<p> | ||||||
| 				The following settings allow you to <strong>alias</strong> your account to another account | 				The following settings allow you to <strong>alias</strong> your account to another account | ||||||
| 				elsewhere, and to <strong>move</strong> your followers and following lists to another account. | 				elsewhere, and to <strong>move</strong> your followers and following lists to another account. | ||||||
|  | @ -186,18 +190,20 @@ function MoveForm({ data: profile }) { | ||||||
| 				</a> | 				</a> | ||||||
| 			</div> | 			</div> | ||||||
| 			<TextInput | 			<TextInput | ||||||
|  | 				disabled={true} | ||||||
| 				field={form.movedToURI} | 				field={form.movedToURI} | ||||||
| 				label="Move target URI" | 				label="Move target URI" | ||||||
| 				placeholder="https://example.org/users/my_new_account" | 				placeholder="https://example.org/users/my_new_account" | ||||||
| 			/> | 			/> | ||||||
| 			<TextInput | 			<TextInput | ||||||
|  | 				disabled={true} | ||||||
| 				type="password" | 				type="password" | ||||||
| 				name="password" | 				name="password" | ||||||
| 				field={form.password} | 				field={form.password} | ||||||
| 				label="Confirm account password" | 				label="Confirm account password" | ||||||
| 			/> | 			/> | ||||||
| 			<MutationButton | 			<MutationButton | ||||||
| 				disabled={false} | 				disabled={true} | ||||||
| 				label="Confirm account move" | 				label="Confirm account move" | ||||||
| 				result={result} | 				result={result} | ||||||
| 			/> | 			/> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue