remove unused buttons

This commit is contained in:
samunohito 2024-02-17 21:22:18 +09:00
parent 07b9757b36
commit 6ba613b4bb
1 changed files with 3 additions and 14 deletions

View File

@ -2,7 +2,7 @@
<div>
<MkStickyContainer>
<template #header>
<MkPageHeader v-model:tab="headerTab" :actions="headerActions" :tabs="headerTabs"/>
<MkPageHeader v-model:tab="headerTab" :tabs="headerTabs"/>
</template>
<XGridLocalComponent v-if="headerTab === 'local'"/>
<XGridRemoteComponent v-else/>
@ -16,6 +16,8 @@ import { i18n } from '@/i18n.js';
import { definePageMetadata } from '@/scripts/page-metadata.js';
import XGridLocalComponent from '@/pages/admin/custom-emojis-grid.local.vue';
import XGridRemoteComponent from '@/pages/admin/custom-emojis-grid.remote.vue';
import MkPageHeader from '@/components/global/MkPageHeader.vue';
import MkStickyContainer from '@/components/global/MkStickyContainer.vue';
type PageMode = 'local' | 'remote';
@ -29,19 +31,6 @@ const headerTabs = computed(() => [{
title: i18n.ts.remote,
}]);
const headerActions = computed(() => [{
asFullButton: true,
icon: 'ti ti-plus',
text: i18n.ts.addEmoji,
handler: () => {
},
}, {
icon: 'ti ti-dots',
text: '',
handler: () => {
},
}]);
definePageMetadata(computed(() => ({
title: i18n.ts.customEmojis,
icon: 'ti ti-icons',