pfp cropping #12
2 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ async function cropImage() {
|
|||
}
|
||||
}
|
||||
});
|
||||
const file = new File([blob], 'image.png', { type: 'image/png' })
|
||||
const file = new File([blob], 'preview.png', { type: 'image/png' })
|
||||
reader.readAsDataURL(file)
|
||||
}
|
||||
});
|
||||
|
|
|
@ -46,8 +46,8 @@ if (!user) {
|
|||
}
|
||||
|
||||
let newPfpFile: File;
|
||||
const isCropPopupVisible = ref(false); // State to manage the visibility of the CropPopup
|
||||
const cropImageSrc = ref(''); // State to hold the image source for cropping
|
||||
const isCropPopupVisible = ref(false);
|
||||
const cropImageSrc = ref('');
|
||||
|
||||
|
||||
async function saveChanges() {
|
||||
if (!user) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
Use double quotes