Update EmailDialog to accept email prop from ProfilePage and adjust email state handling accordingly.
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user