This commit is contained in:
mattyatea 2024-01-06 19:52:16 +09:00
parent ce8d9871b1
commit e25da38393
1 changed files with 4 additions and 3 deletions

View File

@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {watch, defineAsyncComponent, ref, computed} from 'vue'; import { watch, defineAsyncComponent, ref, computed } from 'vue';
import * as Misskey from 'misskey-js'; import * as Misskey from 'misskey-js';
import XEmoji from './emojis.emoji.vue'; import XEmoji from './emojis.emoji.vue';
import MkButton from '@/components/MkButton.vue'; import MkButton from '@/components/MkButton.vue';
@ -56,6 +56,7 @@ import { i18n } from '@/i18n.js';
import * as os from '@/os'; import * as os from '@/os';
import { $i } from '@/account.js'; import { $i } from '@/account.js';
import { definePageMetadata } from '@/scripts/page-metadata'; import { definePageMetadata } from '@/scripts/page-metadata';
import { misskeyApiGet } from '@/scripts/misskey-api.js';
let tab = ref('emojis'); let tab = ref('emojis');
const headerActions = computed(() => []); const headerActions = computed(() => []);
@ -73,7 +74,7 @@ definePageMetadata(ref({}));
let q = ref(''); let q = ref('');
let searchEmojis = ref<Misskey.entities.CustomEmoji[]>(null); let searchEmojis = ref<Misskey.entities.CustomEmoji[]>(null);
let selectedTags = ref(new Set()); let selectedTags = ref(new Set());
const requestEmojis = await os.apiGet('emoji-requests'); const requestEmojis = await misskeyApiGet('emoji-requests');
function search() { function search() {
if ((q.value === '' || q.value == null) && selectedTags.value.size === 0) { if ((q.value === '' || q.value == null) && selectedTags.value.size === 0) {