Make site menu translation reactive

This commit is contained in:
Florian Dupret 2021-04-26 13:30:22 +02:00
commit 675279b9a6

View file

@ -43,9 +43,9 @@ export default {
components: { components: {
LoginDialog, LoginDialog,
}, },
data: function() { computed: {
return { items() {
items: [ return [
{ {
icon: "mdi-account", icon: "mdi-account",
title: "Login", title: "Login",
@ -82,11 +82,8 @@ export default {
nav: "/admin", nav: "/admin",
restricted: true, restricted: true,
}, },
], ]
}; },
},
mounted() {},
computed: {
filteredItems() { filteredItems() {
if (this.loggedIn) { if (this.loggedIn) {
return this.items.filter(x => x.restricted == true); return this.items.filter(x => x.restricted == true);