mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 13:52:25 -05:00 
			
		
		
		
	[feature] Move + alias account via settings panel (#2519)
* [feature] Move + alias account via settings panel * lint * type a bit more diligently
This commit is contained in:
		
					parent
					
						
							
								c36f9ac37b
							
						
					
				
			
			
				commit
				
					
						486585890d
					
				
			
		
					 12 changed files with 476 additions and 57 deletions
				
			
		|  | @ -22,7 +22,12 @@ import { FormInputHook, HookedForm } from "./types"; | |||
| export default function getFormMutations( | ||||
| 	form: HookedForm, | ||||
| 	{ changedOnly }: { changedOnly: boolean }, | ||||
| ) { | ||||
| ): { | ||||
| 	updatedFields: FormInputHook<any>[]; | ||||
| 	mutationData: { | ||||
| 		[k: string]: any; | ||||
| 	}; | ||||
| } { | ||||
| 	const updatedFields: FormInputHook[] = []; | ||||
| 	const mutationData: Array<[string, any]> = []; | ||||
| 	 | ||||
|  | @ -34,7 +39,7 @@ export default function getFormMutations( | |||
| 		} | ||||
| 		 | ||||
| 		if ("selectedValues" in field) { | ||||
| 			// FieldArrayInputHook.
 | ||||
| 			// (Field)ArrayInputHook.
 | ||||
| 			const selected = field.selectedValues(); | ||||
| 			if (!changedOnly || selected.length > 0) { | ||||
| 				updatedFields.push(field); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue