mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	Fix/fix broken pwa (#1086)
* remove fetch / use axios fix #1077 * revert checkbox change * add password peek * fix bool check
This commit is contained in:
		
							
								
								
									
										22
									
								
								frontend/composables/use-password-field.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								frontend/composables/use-password-field.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| import { computed, ref, useContext } from "@nuxtjs/composition-api"; | ||||
|  | ||||
| export function usePasswordField() { | ||||
|   const show = ref(false); | ||||
|  | ||||
|   const { $globals } = useContext(); | ||||
|  | ||||
|   const passwordIcon = computed(() => { | ||||
|     return show.value ? $globals.icons.eyeOff : $globals.icons.eye; | ||||
|   }); | ||||
|   const inputType = computed(() => (show.value ? "text" : "password")); | ||||
|  | ||||
|   const togglePasswordShow = () => { | ||||
|     show.value = !show.value; | ||||
|   }; | ||||
|  | ||||
|   return { | ||||
|     inputType, | ||||
|     togglePasswordShow, | ||||
|     passwordIcon, | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user