毎回withRenoteをfalseに

This commit is contained in:
ThinaticSystem 2022-09-12 00:44:50 +09:00
parent f9f72d954c
commit c494eec931
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="omfetrab" :class="['s' + size, 'w' + width, 'h' + height, { asDrawer }]" :style="{ maxHeight: maxHeight ? maxHeight + 'px' : undefined }">
<input ref="search" v-model.trim="q" class="search" data-prevent-emoji-insert :class="{ filled: q != null && q != '' }" :placeholder="i18n.ts.search" type="search" @paste.stop="paste" @keyup.enter="done()">
<MkSwitch v-model="withRenote">{{ i18n.ts.reactWithRenote }}</MkSwitch>
<MkSwitch v-if="props.asReactionPicker" v-model="withRenote" class="withRenote">{{ i18n.ts.reactWithRenote }}</MkSwitch>
<div ref="emojis" class="emojis">
<section class="result">
<div v-if="searchResultCustom.length > 0" class="body">
@ -281,6 +281,7 @@ function focus() {
function reset() {
if (emojis.value) emojis.value.scrollTop = 0;
q.value = '';
withRenote.value = false; // Renotefalse
}
function getKey(emoji: string | Misskey.entities.CustomEmoji | UnicodeEmojiDef): string {
@ -455,8 +456,8 @@ defineExpose({
}
}
> .renote {
width: 100%;
> .withRenote {
order: 1;
}
> .tabs {

View File

@ -212,7 +212,6 @@ function react(viaKeyboard = false): void {
noteId: appearNote.id,
reaction: results.reaction,
});
console.log(results)
if (results.withRenote) {
os.api('notes/create', {
renoteId: appearNote.id,