Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chamilo-lms/assets/vue/views/account/Home.vue

56 lines
1.1 KiB

<template>
<div id="account-home">
<div class="flex mb-4">
<Avatar
:image="user.illustrationUrl + '?w=80&h=80&fit=crop'"
shape="circle"
size="large"
class="flex-none mr-2"
/>
<div class="flex-1">
<p class="text-body-1">
{{ user.fullName }}
</p>
<p class="text-caption">
{{ user.username }}
</p>
</div>
</div>
<Button
class="p-button-sm mb-4"
label="Edit profile"
@click="btnEditProfileOnClick"
/>
<p>
<router-link to="/resources/friends">
{{ t('My friends') }}
</router-link>
</p>
<p>
<router-link to="/resources/personal_files">
{{ t('My files') }}
</router-link>
</p>
</div>
</template>
<script setup>
import { computed } from 'vue';
import { useStore } from 'vuex';
import Avatar from 'primevue/avatar';
import { useI18n } from 'vue-i18n';
const store = useStore();
const { t } = useI18n();
const user = computed(() => store.getters['security/getUser']);
function btnEditProfileOnClick () {
window.location = '/account/edit';
}
</script>