"trying functions"
This commit is contained in:
@ -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">
|
||||
|
Reference in New Issue
Block a user