fixed dialog scaling issue

This commit is contained in:
2025-12-11 11:52:11 -05:00
parent dcb4720129
commit 87c472e98e
2 changed files with 21 additions and 14 deletions

View File

@@ -68,10 +68,6 @@ const { handleSubmit, values, resetForm } = useForm({
validationSchema: toTypedSchema(loaSchema),
})
watch(values, (v) => {
console.log("Form values:", v)
})
const onSubmit = handleSubmit((values) => {
console.log(values);
})
@@ -80,12 +76,16 @@ onMounted(async () => {
if (props.member) {
currentMember.value = props.member;
}
if (!props.adminMode) {
policyString.value = await getLoaPolicy();
try {
if (!props.adminMode) {
policyString.value = await getLoaPolicy();
}
} catch (error) {
console.error(error);
}
members.value = await getMembers();
loaTypes.value = await getLoaTypes();
console.log(currentMember.value);
resetForm({ values: { member_id: currentMember.value?.member_id } });
});

View File

@@ -18,20 +18,27 @@ const showLOADialog = ref(false);
<template>
<Dialog v-model:open="showLOADialog" v-on:update:open="showLOADialog = false">
<DialogContent>
<DialogContent class="sm:max-w-fit">
<DialogHeader>
<DialogTitle>Post LOA</DialogTitle>
<DialogDescription>
Post an LOA on behalf of a member.
</DialogDescription>
</DialogHeader>
<LoaForm :admin-mode="true" class="my-5 w-full"></LoaForm>
<!-- <DialogFooter>
<Button variant="secondary" @click="showLOADialog = false">Cancel</Button>
<Button>Apply</Button>
</DialogFooter> -->
<LoaForm :admin-mode="true" class="my-3"></LoaForm>
</DialogContent>
</Dialog>
</Dialog>
<!-- <Dialog v-model:open="showLOADialog" v-on:update:open="showLOADialog = false">
<DialogContent class="max-w-full">
<DialogHeader>
<DialogTitle>Are you absolutely sure?</DialogTitle>
<DialogDescription>
This action cannot be undone. This will permanently delete your account
and remove your data from our servers.
</DialogDescription>
</DialogHeader>
</DialogContent>
</Dialog> -->
<div class="max-w-5xl mx-auto pt-10">
<div class="flex justify-end mb-4">