Update EmailDialog to accept email prop from ProfilePage and adjust email state handling accordingly.

This commit is contained in:
2025-04-18 04:59:58 -04:00
parent 659443316c
commit af71c5e952
2 changed files with 6 additions and 1 deletions

View File

@@ -124,6 +124,7 @@ const closeDialog = () => {
<component <component
:is="currentComponent" :is="currentComponent"
:creator="creatorProfileStore.creator" :creator="creatorProfileStore.creator"
:email="userProfileStore.user.email"
@closeRequested="closeDialog" @closeRequested="closeDialog"
></component> ></component>
</v-dialog> </v-dialog>

View File

@@ -32,6 +32,10 @@ import { useTranslations } from "@/translations/translations";
const t = useTranslations(); const t = useTranslations();
const props = defineProps({ const props = defineProps({
email: {
required: true,
type: String
},
creator: { creator: {
required: true required: true
} }
@@ -39,7 +43,7 @@ const props = defineProps({
const emits = defineEmits(['closeRequested']); const emits = defineEmits(['closeRequested']);
const email = ref(props.creator.email); const email = ref(props.email);
const client = useClient(); const client = useClient();
const save = async () => { const save = async () => {