Small changes

This commit is contained in:
2024-04-20 12:42:41 +02:00
parent 92cdeaebba
commit cdc3772384
6 changed files with 22 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<script setup>
import i18n from "@/i18n.js"
import {getUser} from '../../rest/Users.js'
import {getSelf, getUser} from '../../rest/Users.js'
import {getSomeonesCurriculumList} from "@/rest/curriculum.js";
import {ref} from "vue";
import ExternalCurriculumList from "@/Apps/Inscription/ExternalCurriculumList.vue";
@ -12,6 +12,7 @@
const externalcurrlist = await getExternalCurriculumByUser(user.regNo)
const extercurrlist = ref(false)
const watchingUser = await getSelf()
function getPP(){
if(user.profilePictureUrl === null){
return "/Clyde.png"
@ -54,6 +55,9 @@
<div>
Date de naissance : {{user.birthDate}}
</div>
<div>
<button v-if="watchingUser.role === 'Admin' || watchingUser.role === 'InscriptionService' || watchingUser.role === 'Secretary' || watchingUser.regNo === user.regNo">Download identity card</button>
</div>
<div>
<button @click="extercurrlist=!extercurrlist">See external curriculums</button>
</div>