This commit is contained in:
mattyatea 2024-03-06 13:46:27 +09:00
parent b40ecc6159
commit e9ffc01929
1 changed files with 90 additions and 90 deletions

View File

@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</section>
<div v-if="tab === 'index'" class="group index">
<section v-if="showPinned && (pinned && pinned.length > 0)">
<section v-if="showPinned">
<div style="display: flex; ">
<div v-for="a in profileMax" :key="a" :title="defaultStore.state[`pickerProfileName${a > 1 ? a - 1 : ''}`]" class="sllfktkhgl" :class="{ active: activeIndex === a || isDefaultProfile === a }" @click="pinnedProfileSelect(a)">
{{ defaultStore.state[`pickerProfileName${a > 1 ? a - 1 : ''}`] }}
@ -130,8 +130,8 @@ import { customEmojiCategories, customEmojis, customEmojisMap } from '@/custom-e
import { signinRequired } from '@/account.js';
import { checkReactionPermissions } from '@/scripts/check-reaction-permissions.js';
import { deepClone } from '@/scripts/clone.js';
import MkCustomEmoji from "@/components/global/MkCustomEmoji.vue";
import MkEmoji from "@/components/global/MkEmoji.vue";
import MkCustomEmoji from '@/components/global/MkCustomEmoji.vue';
import MkEmoji from '@/components/global/MkEmoji.vue';
const $i = signinRequired();
const props = withDefaults(defineProps<{
showPinned?: boolean;
@ -163,7 +163,7 @@ const recentlyUsedEmojisDef = computed(() => {
return recentlyUsedEmojis.value.map(getDef);
});
const pinnedEmojisDef = computed(() => {
return pinned.value?.map(getDef);
return pinnedEmojis.value?.map(getDef);
});
const pinned = computed(() => props.pinnedEmojis);