forked from open-webui/open-webui
		
	Move login page toast error to the bottom of page and enable i18n for translation
This commit is contained in:
		
							parent
							
								
									69716a5cec
								
							
						
					
					
						commit
						bad7dca51e
					
				
					 2 changed files with 8 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -44,9 +44,13 @@
 | 
			
		|||
		);
 | 
			
		||||
 | 
			
		||||
		if (!canvasPixelTest()) {
 | 
			
		||||
			toast.error('Canvas pixel test failed, fingerprint evasion likely. Default image used.', {
 | 
			
		||||
				autoClose: 1000 * 10
 | 
			
		||||
			});
 | 
			
		||||
			toast.error(
 | 
			
		||||
				$i18n.t('Canvas pixel test failed, fingerprint evasion likely. Default image used.'),
 | 
			
		||||
				{
 | 
			
		||||
					position: "bottom-center",
 | 
			
		||||
					autoClose: 1000 * 10,
 | 
			
		||||
				}
 | 
			
		||||
			);
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		await setSessionUser(sessionUser);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue