Commit a3b2ec4 1 parent 888f8b2 commit a3b2ec4 Copy full SHA for a3b2ec4
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only
36
36
</section>
37
37
38
38
<div v-if="tab === 'index'" class="group index">
39
- <section v-if="showPinned">
39
+ <section v-if="showPinned && pinned.length > 0 ">
40
40
<div class="body">
41
41
<button
42
42
v-for="emoji in pinned"
@@ -128,14 +128,15 @@ const searchEl = shallowRef<HTMLInputElement>();
128
128
const emojisEl = shallowRef<HTMLDivElement>();
129
129
130
130
const {
131
- reactions: pinned ,
131
+ reactions: pinnedReactions ,
132
132
reactionPickerSize,
133
133
reactionPickerWidth,
134
134
reactionPickerHeight,
135
135
disableShowingAnimatedImages,
136
136
recentlyUsedEmojis,
137
137
} = defaultStore.reactiveState;
138
138
139
+ const pinned = computed(() => props.asReactionPicker ? pinnedReactions.value : []); // TODO: 非リアクションの絵文字ピッカー用のpinned絵文字を設定可能にする?
139
140
const size = computed(() => props.asReactionPicker ? reactionPickerSize.value : 1);
140
141
const width = computed(() => props.asReactionPicker ? reactionPickerWidth.value : 3);
141
142
const height = computed(() => props.asReactionPicker ? reactionPickerHeight.value : 2);
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class EmojiPicker {
25
25
public async init ( ) {
26
26
await popup ( defineAsyncComponent ( ( ) => import ( '@/components/MkEmojiPickerDialog.vue' ) ) , {
27
27
src : this . src ,
28
- asReactionPicker : true ,
28
+ asReactionPicker : false ,
29
29
manualShowing : this . manualShowing ,
30
30
choseAndClose : false ,
31
31
} , {
You can’t perform that action at this time.
0 commit comments