1
0
forked from PGL/Clyde

"trying functions"

This commit is contained in:
2024-03-15 22:47:40 +01:00
parent b047c4de35
commit 1903a6c9be
2 changed files with 16 additions and 5 deletions

View File

@ -6,7 +6,12 @@
/*
const user = getUser();
*/
const user =reactive({
const user = getUser();
/*reactive({
profilePicture:"/Clyde.png",
lastName:"Ghost",
firstName:"Clyde",
@ -64,6 +69,10 @@
})*/
const modif = ref(false);
const curric = ref(false);
const unreg = ref(false);
const reg = ref(false);
const toModify = Object.assign({}, user);
@ -100,11 +109,11 @@ function getPP(){
<button @click="modif=!modif"> {{i18n("profile.modify.data")}} </button>
</div>
<div v-if="(user.role==='student')">
<button>{{i18n("profile.reRegister")}}</button>
<button style="float:right;background-color:rgb(150,0,0);">{{i18n("profile.unRegister")}}</button>
<button @click="reg=!reg">{{i18n("profile.reRegister")}}</button>
<button @click="unreg=!unreg" style="float:right;background-color:rgb(150,0,0);">{{i18n("profile.unRegister")}}</button>
</div>
<div>
<button>{{i18n("profile.change.curriculum")}}</button>
<button @click="curric=!curric">{{i18n("profile.change.curriculum")}}</button>
</div>
</div>
<div v-else class="infosContainer">