File tree Expand file tree Collapse file tree
assets/vue/components/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,9 +63,9 @@ import { useMessageRelUserStore } from "../../store/messageRelUserStore"
6363
6464import headerLogoPath from " ../../../../assets/css/themes/chamilo/images/header-logo.svg"
6565import { useNotification } from " ../../composables/notification"
66- import { useI18n } from ' vue-i18n' ;
66+ import { useI18n } from " vue-i18n"
6767
68- const { t } = useI18n ();
68+ const { t } = useI18n ()
6969
7070// eslint-disable-next-line no-undef
7171const props = defineProps ({
@@ -90,7 +90,7 @@ const btnTicketsOnClick = () => {
9090const btnInboxOnClick = async () => await router .push ({ name: " MessageList" })
9191
9292const elUserSubmenu = ref (null )
93- const userSubmenuItems = [
93+ const userSubmenuItems = computed (() => [
9494 {
9595 label: props .currentUser .fullName ,
9696 items: [
@@ -116,7 +116,7 @@ const userSubmenuItems = [
116116 },
117117 ],
118118 },
119- ]
119+ ])
120120
121121function toogleUserMenu (event ) {
122122 elUserSubmenu .value .toggle (event )
Original file line number Diff line number Diff line change 1212</template >
1313
1414<script setup>
15- import { ref } from " vue"
15+ import {computed , ref } from " vue"
1616import Menubar from " primevue/menubar"
1717import headerLogoPath from " ../../../../assets/css/themes/chamilo/images/header-logo.svg"
1818import { useI18n } from " vue-i18n"
@@ -45,7 +45,7 @@ const languageItems = window.languages.map((language) => ({
4545
4646const currentLanguage = window .languages .find ((language ) => document .querySelector (" html" ).lang === language .isocode )
4747
48- const menuItems = ref ( [
48+ const menuItems = computed (() => [
4949 {
5050 label: t (" Home" ),
5151 to: { name: " Index" },
You can’t perform that action at this time.
0 commit comments