chore: code cleanup
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
<profile-avatar
|
||||
:src="src"
|
||||
:name="userNameWithoutEmoji"
|
||||
@change="updateProfilePicture"
|
||||
@delete="deleteProfilePicture"
|
||||
@change-avatar="updateProfilePicture"
|
||||
@delete-avatar="deleteProfilePicture"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -108,13 +108,13 @@ const openFileInput = () => {
|
||||
|
||||
const onImageUpload = event => {
|
||||
const [file] = event.target.files;
|
||||
emits('change', {
|
||||
emits('change-avatar', {
|
||||
file,
|
||||
url: file ? URL.createObjectURL(file) : null,
|
||||
});
|
||||
};
|
||||
|
||||
const onAvatarDelete = () => {
|
||||
emits('delete');
|
||||
emits('delete-avatar');
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user