Merged PR 53: #41 fix some problems

#41 Ids for the users and route fix

Related work items: #41
This commit is contained in:
Dominic Villemure
2024-05-16 23:52:04 +00:00
5 changed files with 17 additions and 7 deletions

View File

@@ -19,7 +19,7 @@
<img src="/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png"
class="header-profile-icon mr-2" alt="Logo">
<v-btn flat style="min-width: 200px; font-size: 1.3rem;" dark v-bind="props">
INVITÉ
{{ currentUserName }}
</v-btn>
</div>
</v-col>
@@ -87,9 +87,19 @@
</body>
</template>
<script setup>
import { ref } from 'vue';
<script async setup>
import { onBeforeMount, ref } from 'vue';
import {useClient} from "@/plugins/api.js";
const client = useClient();
const drawer = ref(false);
const currentUserName = ref("INVITÉ");
onBeforeMount(async () => {
const myUser = await client.get("/api/GetMyUser");
currentUserName.value = myUser.data.firstName + " " + myUser.data.lastName;
})
</script>

View File

@@ -88,7 +88,7 @@ const profiles = ref([
name: "Chloé Beaugrand",
description: "Spécialiste en médias sociaux",
imageUrl: '/images/usersmedia/chloebeaugrand/profilepictures/profileChloeBeaugrand01.png',
routerLink: 'chloebeauregard'
routerLink: 'chloebeaugrand'
}
]);
</script>

View File

@@ -497,7 +497,7 @@
JE SOUTIENS!
</v-card-title>
</v-row>
<StripePayment creator-id="5b122430-442a-4967-98b6-6c7787c70c91"></StripePayment>
<StripePayment creator-id="d022276f-0865-4d01-8100-c088f9bf85ab"></StripePayment>
</v-container>
</v-card>
</v-container>

View File

@@ -375,7 +375,7 @@
JE SOUTIENS!
</v-card-title>
</v-row>
<StripePayment creator-id="5b122430-442a-4967-98b6-6c7787c70c91"></StripePayment>
<StripePayment creator-id="3c4317c6-af4d-475a-a382-6d0a675cc67f"></StripePayment>
</v-container>
</v-card>
</v-container>

View File

@@ -457,7 +457,7 @@
JE SOUTIENS!
</v-card-title>
</v-row>
<StripePayment creator-id="5b122430-442a-4967-98b6-6c7787c70c91"></StripePayment>
<StripePayment creator-id="1578f5ee-6cd0-42ac-9959-249cd10b6bfb"></StripePayment>
</v-container>
</v-card>
</v-container>