mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-24 07:15:24 -07:00
Make site menu translation reactive
This commit is contained in:
parent
ba53ad75af
commit
675279b9a6
1 changed files with 5 additions and 8 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue