diff --git a/src/stores/userStore.js b/src/stores/userStore.js index e9af8db..fe87a59 100644 --- a/src/stores/userStore.js +++ b/src/stores/userStore.js @@ -52,26 +52,5 @@ export const useUserStore = defineStore( } } - async function updateCurrentUser(userModel, profilePicture) { - const client = useClient() - await client.patch("/api/UpdateMyUser/profile", userModel) - - if (typeof userModel.storedDataUrls.profilePictureUrl !== "object") { - const haveNewProfilePicture = profilePicture !== null && profilePicture.size !== 0; - const updateProfilePictureEndpoint = haveNewProfilePicture ? `/api/UpdateMyUser/profile-picture` : `/api/UpdateMyUser/profile-picture?url=${userModel.storedDataUrls.profilePictureUrl}`; - const response = await client.post(updateProfilePictureEndpoint, profilePicture, { - headers: { - 'Content-Type': profilePicture?.type ?? "application/octet-stream", - } - }); - - if (haveNewProfilePicture) { - this.user.value.portraitUrl = response.data; - } - } - - this.user.value = userModel; - } - return {user, creator, alias, portraitUrl} }) diff --git a/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue b/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue index a1628c5..2b64e11 100644 --- a/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue +++ b/src/views/Profile/Dialogs/PageInformations/BannerPicker.vue @@ -1,73 +1,68 @@  +}) - + + diff --git a/src/views/Profile/PageInformations.vue b/src/views/Profile/PageInformations.vue index fd21018..543d1bc 100644 --- a/src/views/Profile/PageInformations.vue +++ b/src/views/Profile/PageInformations.vue @@ -1,27 +1,76 @@ -