fix(fe1): Undefined 'commentSlideShow' error in CommentThreadViewer.vue (#2334)
* Fix undefined 'commentSlideShow' error in CommentThreadViewer.vue * Revert changes to fix console error
This commit is contained in:
committed by
GitHub
parent
c856a9be2d
commit
1a1b46b6e4
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
v-if="!$vuetify.breakpoint.xs"
|
||||
v-if="!$vuetify.breakpoint.xs || (isEmbed && commentSlideShow)"
|
||||
class="no-mouse py-2"
|
||||
:style="`max-width: 350px; padding-right:30px;
|
||||
${
|
||||
@@ -450,6 +450,7 @@ import { SMART_EDITOR_SCHEMA } from '@/main/lib/viewer/comments/commentsHelper'
|
||||
import { isSuccessfullyUploaded } from '@/main/lib/common/file-upload/fileUploadHelper'
|
||||
import { COMMENT_FULL_INFO_FRAGMENT } from '@/graphql/comments'
|
||||
import { useCommitObjectViewerParams } from '@/main/lib/viewer/commit-object-viewer/stateManager'
|
||||
import { useEmbedViewerQuery } from '@/main/lib/viewer/commit-object-viewer/composables/embed'
|
||||
// TODO: The template is a WET mess, need to refactor it
|
||||
|
||||
export default {
|
||||
@@ -586,10 +587,12 @@ export default {
|
||||
},
|
||||
setup() {
|
||||
const { streamId, resourceId, isEmbed } = useCommitObjectViewerParams()
|
||||
const { commentSlideShow } = useEmbedViewerQuery()
|
||||
return {
|
||||
streamId,
|
||||
resourceId,
|
||||
isEmbed
|
||||
isEmbed,
|
||||
commentSlideShow
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
||||
Reference in New Issue
Block a user