feat: Implement URL copy functionality for creator profile and update email handling in EmailDialog.vue

This commit is contained in:
2025-04-24 04:58:19 -04:00
parent 36846405a5
commit f4e12cd4fa
2 changed files with 55 additions and 8 deletions

View File

@@ -35,9 +35,6 @@ const props = defineProps({
email: {
required: true,
type: String
},
creator: {
required: true
}
});
@@ -49,12 +46,11 @@ const client = useClient();
const save = async () => {
try {
await client.post(
`/api/creators/${props.creator.id}/email`,
`/api/users/email`,
{
email: email.value
});
props.creator.email = email.value;
emits('closeRequested');
} catch (error) {
console.error(error);