Renames StoredDataUrls to Images
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user