Renames StoredDataUrls to Images

This commit is contained in:
Jonathan Bourdon
2024-08-06 01:04:09 -04:00
parent cb25586d9a
commit a745fcbcc9
5 changed files with 12 additions and 12 deletions

View File

@@ -50,7 +50,7 @@
<div class="flex justify-center text-2xl ">Photo de profil</div>
</div>
<div class="flex justify-center py-4">
<img :src="profilePictureUrl"
<img :src="logoImageUrl"
:style="{ borderColor: user.profileColors.accent || '#23393B' , borderWidth: '3px', borderStyle: 'solid' }"
class="rounded-full max-w-48 max-w-48"
@error="handleProfileImageError"
@@ -95,8 +95,8 @@ const props = defineProps({
user: {}
});
const bannerImageUrl = ref(props.user.storedDataUrls.bannerPictureUrl);
const profilePictureUrl = ref(props.user.storedDataUrls.profilePictureUrl);
const bannerImageUrl = ref(props.user.images.banner);
const logoImageUrl = ref(props.user.images.logo);
const bannerImage = ref(null);
const profilePicture = ref(null);
@@ -130,7 +130,7 @@ const onProfileFileChange = (event) => {
if (file) {
const reader = new FileReader();
reader.onload = (e) => {
profilePictureUrl.value = e.target.result;
logoImageUrl.value = e.target.result;
};
reader.readAsDataURL(file);
emit('updateProfilePicture', file);