mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
Fix/fix block registration (#1059)
* fix disable button * add backend env for restricting registration * update state management * add allow_signup to app info * move allow_signup to backend only * cleanup docker-compose * potential darkmode fix * fix missing variable * add banner on login page * use random bools for tests * fix initial state bug * fix state reset
This commit is contained in:
parent
3c2744a3da
commit
13e157827c
20 changed files with 107 additions and 52 deletions
11
frontend/composables/api/use-app-info.ts
Normal file
11
frontend/composables/api/use-app-info.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Ref, useAsync } from "@nuxtjs/composition-api";
|
||||
import { useAsyncKey } from "../use-utils";
|
||||
import { AppInfo } from "~/types/api-types/admin";
|
||||
|
||||
export function useAppInfo(): Ref<AppInfo | null> {
|
||||
return useAsync(async () => {
|
||||
// We use fetch here to reduce need for additional dependencies
|
||||
const data = await fetch("/api/app/about").then((res) => res.json());
|
||||
return data as AppInfo;
|
||||
}, useAsyncKey());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue