only show index posts action if admin

This commit is contained in:
ThatOneCalculator 2023-04-13 20:11:39 -07:00
parent 25f45f8b4b
commit 9501e8a882
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
1 changed files with 10 additions and 6 deletions

View File

@ -161,12 +161,16 @@ const menuDef = $computed(() => [
},
]
: []),
{
type: "button",
icon: "ph-list-magnifying-glass ph-bold ph-lg",
text: i18n.ts.indexPosts,
action: indexPosts,
},
...($i.isAdmin
? [
{
type: "button",
icon: "ph-list-magnifying-glass ph-bold ph-lg",
text: i18n.ts.indexPosts,
action: indexPosts,
},
]
: []),
],
},
{