mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	feat(backend): ✨ refactor/fix group management for admins (#838)
* fix(frontend): 🐛 update dialog implementation to simplify state management * test(backend): ✅ refactor test fixtures + admin group tests * chore(backend): 🔨 add launcher.json for python debugging (tests) * fix typing * feat(backend): ✨ refactor/fix group management for admins * feat(frontend): ✨ add/fix admin group management * add LDAP checker Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
		| @@ -128,6 +128,7 @@ export default defineComponent({ | ||||
|       emailReady: false, | ||||
|       baseUrlSet: false, | ||||
|       isSiteSecure: false, | ||||
|       ldapReady: false, | ||||
|     }); | ||||
|  | ||||
|     const api = useUserApi(); | ||||
| @@ -140,10 +141,10 @@ export default defineComponent({ | ||||
|         appConfig.value = data; | ||||
|       } | ||||
|  | ||||
|       appConfig.value.isSiteSecure = isLocalhostorHttps(); | ||||
|       appConfig.value.isSiteSecure = isLocalHostOrHttps(); | ||||
|     }); | ||||
|  | ||||
|     function isLocalhostorHttps() { | ||||
|     function isLocalHostOrHttps() { | ||||
|       return window.location.hostname === "localhost" || window.location.protocol === "https:"; | ||||
|     } | ||||
|  | ||||
| @@ -152,15 +153,21 @@ export default defineComponent({ | ||||
|         { | ||||
|           status: appConfig.value.baseUrlSet, | ||||
|           text: "Server Side Base URL", | ||||
|           errorText: "Error - `BASE_URL` still default on API Server", | ||||
|           errorText: "`BASE_URL` still default on API Server", | ||||
|           successText: "Server Side URL does not match the default", | ||||
|         }, | ||||
|         { | ||||
|           status: appConfig.value.isSiteSecure, | ||||
|           text: "Secure Site", | ||||
|           errorText: "Error - Serve via localhost or secure with https.", | ||||
|           errorText: "Serve via localhost or secure with https.", | ||||
|           successText: "Site is accessed by localhost or https", | ||||
|         }, | ||||
|         { | ||||
|           status: appConfig.value.ldapReady, | ||||
|           text: "LDAP Ready", | ||||
|           errorText: "Not all LDAP Values are configured", | ||||
|           successText: "Required LDAP variables are all set.", | ||||
|         }, | ||||
|       ]; | ||||
|     }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user