I am trying to use the freya theme and I modified the user menu in the file AppTopBar.vue like so:
Code: Select all
[...]
<li ref="profile" class="topbar-item user-profile" :class="{'active-topmenuitem fadeInDown': topbarUserMenuActive}">
<a @click="onTopbarUserMenuClick">
<img src="assets/layout/images/avatar.jpeg" alt="freya-layout"/>
</a>
<ul class="fadeInDown">
<li>
<a @click="logout">
<span>Logout</span>
</a>
</li>
</ul>
</li>
[...]
Code: Select all
methods: {
[..]
logout() {
console.log("Clicked logout");
}
}