patron async computed

This commit is contained in:
ThatOneCalculator 2023-06-08 12:51:05 -07:00
parent 344adbe2a1
commit 31acc8caad
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 2 additions and 2 deletions

View File

@ -367,8 +367,6 @@ const props = withDefaults(
const router = useRouter(); const router = useRouter();
const patrons = await os.api("patrons");
let parallaxAnimationId = $ref<null | number>(null); let parallaxAnimationId = $ref<null | number>(null);
let narrow = $ref<null | boolean>(null); let narrow = $ref<null | boolean>(null);
let rootEl = $ref<null | HTMLElement>(null); let rootEl = $ref<null | HTMLElement>(null);
@ -423,6 +421,8 @@ const timeForThem = $computed(() => {
return ""; return "";
}); });
const patrons = $computed(async () => await os.api("patrons"));
function menu(ev) { function menu(ev) {
os.popupMenu( os.popupMenu(
getUserMenu(props.user, router), getUserMenu(props.user, router),