chore: remove "index posts" button from the control panel
This commit is contained in:
parent
27aaab3d34
commit
957473adb2
2 changed files with 0 additions and 15 deletions
|
@ -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 = () =>
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue