"trying functions"
This commit is contained in:
parent
b047c4de35
commit
1903a6c9be
@ -2,7 +2,7 @@
|
||||
import { toast } from 'vue3-toastify';
|
||||
import { ref, computed } from 'vue'
|
||||
import i18n, { setLang } from './i18n.js'
|
||||
|
||||
import { getUser } from './rest/Users.js'
|
||||
|
||||
// Liste des apps
|
||||
import LoginPage from './Apps/Login.vue'
|
||||
@ -51,6 +51,8 @@
|
||||
<a class="icon" href="#home">
|
||||
<div class=" fa-solid fa-house" style="margin-top: 7px; margin-bottom: 3px;"></div>
|
||||
</a></li>
|
||||
|
||||
<li><button @click="console.log(getUser())"/> </li>
|
||||
<li style="float: right;" title=login>
|
||||
<a class="icon" href="#/login">
|
||||
<div class="fa-solid fa-user" style="margin-top: 7px; margin-bottom: 3px;"></div>
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user