fix: 🐛 save reactions if added
This commit is contained in:
parent
d8a46370c0
commit
ba7dbe9861
@ -644,6 +644,7 @@ useBlurEffectForModal: "Use blur effect for modals"
|
|||||||
useFullReactionPicker: "Use full-size reaction picker"
|
useFullReactionPicker: "Use full-size reaction picker"
|
||||||
width: "Width"
|
width: "Width"
|
||||||
height: "Height"
|
height: "Height"
|
||||||
|
xl: "XL"
|
||||||
large: "Big"
|
large: "Big"
|
||||||
medium: "Medium"
|
medium: "Medium"
|
||||||
small: "Small"
|
small: "Small"
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<option :value="1">{{ i18n.ts.small }}</option>
|
<option :value="1">{{ i18n.ts.small }}</option>
|
||||||
<option :value="2">{{ i18n.ts.medium }}</option>
|
<option :value="2">{{ i18n.ts.medium }}</option>
|
||||||
<option :value="3">{{ i18n.ts.large }}</option>
|
<option :value="3">{{ i18n.ts.large }}</option>
|
||||||
<option :value="4">{{ i18n.ts.large }}+</option>
|
<option :value="4">{{ i18n.ts.xl }}</option>
|
||||||
</FormRadios>
|
</FormRadios>
|
||||||
|
|
||||||
<FormSwitch
|
<FormSwitch
|
||||||
@ -123,7 +123,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { defineAsyncComponent, watch } from "vue";
|
import { defineAsyncComponent, watch } from "vue";
|
||||||
import { VueDraggable } from "vue-draggable-plus";
|
import { VueDraggable } from "vue-draggable-plus";
|
||||||
import FormInput from "@/components/form/input.vue";
|
|
||||||
import FormRadios from "@/components/form/radios.vue";
|
import FormRadios from "@/components/form/radios.vue";
|
||||||
import FromSlot from "@/components/form/slot.vue";
|
import FromSlot from "@/components/form/slot.vue";
|
||||||
import FormButton from "@/components/MkButton.vue";
|
import FormButton from "@/components/MkButton.vue";
|
||||||
@ -220,6 +219,7 @@ function chooseEmoji(ev: MouseEvent) {
|
|||||||
}).then((emoji) => {
|
}).then((emoji) => {
|
||||||
if (!reactions.includes(emoji)) {
|
if (!reactions.includes(emoji)) {
|
||||||
reactions.push(emoji);
|
reactions.push(emoji);
|
||||||
|
save();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user