mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 11:27:31 -07:00
fix
This commit is contained in:
parent
f58cf72e93
commit
b9ddd5b569
1 changed files with 5 additions and 16 deletions
|
@ -11,26 +11,25 @@
|
||||||
}}</template>
|
}}</template>
|
||||||
<div v-panel style="border-radius: 6px">
|
<div v-panel style="border-radius: 6px">
|
||||||
<VueDraggable
|
<VueDraggable
|
||||||
ref="el"
|
|
||||||
v-model="reactions"
|
v-model="reactions"
|
||||||
class="zoaiodol"
|
class="zoaiodol"
|
||||||
:item-key="(item) => item"
|
|
||||||
animation="150"
|
animation="150"
|
||||||
delay="100"
|
delay="100"
|
||||||
|
@end="save"
|
||||||
delay-on-touch-only="true"
|
delay-on-touch-only="true"
|
||||||
>
|
>
|
||||||
<template #item="{ element }">
|
|
||||||
<button
|
<button
|
||||||
|
v-for="item in reactions"
|
||||||
|
:key="item"
|
||||||
class="_button item"
|
class="_button item"
|
||||||
@click="remove(element, $event)"
|
@click="remove(item, $event)"
|
||||||
>
|
>
|
||||||
<MkEmoji
|
<MkEmoji
|
||||||
:emoji="element"
|
:emoji="item"
|
||||||
style="height: 1.7em"
|
style="height: 1.7em"
|
||||||
class="emoji"
|
class="emoji"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<button class="_button add" @click="chooseEmoji">
|
<button class="_button add" @click="chooseEmoji">
|
||||||
<i class="ph-plus ph-bold ph-lg"></i>
|
<i class="ph-plus ph-bold ph-lg"></i>
|
||||||
|
@ -226,16 +225,6 @@ function chooseEmoji(ev: MouseEvent) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(
|
|
||||||
$$(reactions),
|
|
||||||
() => {
|
|
||||||
save();
|
|
||||||
},
|
|
||||||
{
|
|
||||||
deep: true,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
|
|
||||||
watch(enableEmojiReactions, async () => {
|
watch(enableEmojiReactions, async () => {
|
||||||
await reloadAsk();
|
await reloadAsk();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue