only show index posts action if admin
This commit is contained in:
parent
25f45f8b4b
commit
9501e8a882
@ -161,12 +161,16 @@ const menuDef = $computed(() => [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
...($i.isAdmin
|
||||||
|
? [
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
icon: "ph-list-magnifying-glass ph-bold ph-lg",
|
icon: "ph-list-magnifying-glass ph-bold ph-lg",
|
||||||
text: i18n.ts.indexPosts,
|
text: i18n.ts.indexPosts,
|
||||||
action: indexPosts,
|
action: indexPosts,
|
||||||
},
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user