chore: remove "index posts" button from the control panel

This commit is contained in:
naskya 2023-11-15 23:41:31 +09:00
parent 27aaab3d34
commit 957473adb2
Signed by: naskya
GPG key ID: 164DFF24E2D40139
2 changed files with 0 additions and 15 deletions

View file

@ -7,9 +7,6 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="800" :margin-min="16" :margin-max="32">
<FormButton primary @click="indexPosts">{{
i18n.ts.indexPosts
}}</FormButton>
<FormSuspense
v-slot="{ result: database }"
:p="databasePromiseFactory"
@ -44,7 +41,6 @@ import bytes from "@/filters/bytes";
import number from "@/filters/number";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
import { indexPosts } from "@/scripts/index-posts";
import icon from "@/scripts/icon";
const databasePromiseFactory = () =>

View file

@ -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,
},
]
: []),
],
},
{