From 957473adb21778e3329928a0f773dc9eeaecae9a Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 15 Nov 2023 23:41:31 +0900 Subject: [PATCH] chore: remove "index posts" button from the control panel --- packages/client/src/pages/admin/database.vue | 4 ---- packages/client/src/pages/admin/index.vue | 11 ----------- 2 files changed, 15 deletions(-) diff --git a/packages/client/src/pages/admin/database.vue b/packages/client/src/pages/admin/database.vue index e2da6481..c746c703 100644 --- a/packages/client/src/pages/admin/database.vue +++ b/packages/client/src/pages/admin/database.vue @@ -7,9 +7,6 @@ :display-back-button="true" /> - {{ - i18n.ts.indexPosts - }} diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 0db8ebe2..273f035f 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -78,7 +78,6 @@ import * as os from "@/os"; import { lookupUser } from "@/scripts/lookup-user"; import { lookupFile } from "@/scripts/lookup-file"; import { lookupInstance } from "@/scripts/lookup-instance"; -import { indexPosts } from "@/scripts/index-posts"; import { defaultStore } from "@/store"; import { useRouter } from "@/router"; import { @@ -153,16 +152,6 @@ const menuDef = computed(() => [ }, ] : []), - ...($i.isAdmin - ? [ - { - type: "button", - icon: `${icon("ph-list-magnifying-glass")}`, - text: i18n.ts.indexPosts, - action: indexPosts, - }, - ] - : []), ], }, {