mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -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: {
|
||||
LoginDialog,
|
||||
},
|
||||
data: function() {
|
||||
return {
|
||||
items: [
|
||||
computed: {
|
||||
items() {
|
||||
return [
|
||||
{
|
||||
icon: "mdi-account",
|
||||
title: "Login",
|
||||
|
@ -82,11 +82,8 @@ export default {
|
|||
nav: "/admin",
|
||||
restricted: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
mounted() {},
|
||||
computed: {
|
||||
]
|
||||
},
|
||||
filteredItems() {
|
||||
if (this.loggedIn) {
|
||||
return this.items.filter(x => x.restricted == true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue