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
:is="currentComponent"
:creator="creatorProfileStore.creator"
:email="userProfileStore.user.email"
@closeRequested="closeDialog"
></component>
</v-dialog>

View File

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