mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-04-20 19:07:42 +08:00
Merge pull request #100 from nagisa77/codex/fix-ui-expansion-for-multi-level-comment-links
Fix nested comment link expansion
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
import CommentEditor from './CommentEditor.vue'
|
import CommentEditor from './CommentEditor.vue'
|
||||||
import { renderMarkdown } from '../utils/markdown'
|
import { renderMarkdown } from '../utils/markdown'
|
||||||
import { API_BASE_URL, toast } from '../main'
|
import { API_BASE_URL, toast } from '../main'
|
||||||
@@ -81,6 +81,12 @@ const CommentItem = {
|
|||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const showReplies = ref(props.defaultShowReplies)
|
const showReplies = ref(props.defaultShowReplies)
|
||||||
|
watch(
|
||||||
|
() => props.defaultShowReplies,
|
||||||
|
(val) => {
|
||||||
|
showReplies.value = val
|
||||||
|
}
|
||||||
|
)
|
||||||
const showEditor = ref(false)
|
const showEditor = ref(false)
|
||||||
const isWaitingForReply = ref(false)
|
const isWaitingForReply = ref(false)
|
||||||
const toggleReplies = () => {
|
const toggleReplies = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user