Skip to content

Commit

Permalink
tweak(MkNoteDetailed): 返信を自動で展開する
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyme committed May 6, 2024
1 parent 21eced5 commit c1b0a9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/frontend/src/components/MkNoteDetailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>

<script lang="ts" setup>
import { computed, inject, onMounted, provide, ref, shallowRef } from 'vue';
import { computed, inject, onMounted, provide, ref, shallowRef, watch } from 'vue';
import * as mfm from 'mfm-js';
import * as Misskey from 'misskey-js';
import MkNoteSub from '@/components/MkNoteSub.vue';
Expand Down Expand Up @@ -517,6 +517,12 @@ function loadReplies() {
});
}

watch(tab, () => {
if (tab.value === 'replies' && !repliesLoaded.value) {
loadReplies();
}
}, { immediate: true });

const conversationLoaded = ref(false);

function loadConversation() {
Expand Down

0 comments on commit c1b0a9e

Please sign in to comment.