feat: Implement URL copy functionality for creator profile and update email handling in EmailDialog.vue
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user