mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 15:46:06 +09:00
only show index posts action if admin
This commit is contained in:
parent
3d56921727
commit
4de7c51623
@ -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,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user