diff --git a/packages/frontend/src/main/components/comments/CommentThreadViewer.vue b/packages/frontend/src/main/components/comments/CommentThreadViewer.vue
index bf34e7842..401c6f015 100644
--- a/packages/frontend/src/main/components/comments/CommentThreadViewer.vue
+++ b/packages/frontend/src/main/components/comments/CommentThreadViewer.vue
@@ -23,6 +23,9 @@
This comment is targeting other resources.
View in full context
+
+
+
@@ -49,6 +52,7 @@
+
+
+
{
if (this.localReplies.findIndex((c) => c.id === item.id) === -1)
this.localReplies.push(item)
@@ -215,7 +224,8 @@ export default {
replyText: null,
localReplies: [],
minimise: false,
- showArchiveDialog: false
+ showArchiveDialog: false,
+ loadingReply: false
}
},
computed: {
@@ -322,8 +332,11 @@ export default {
parentComment: this.comment.id,
text: this.replyText
}
-
+
+ this.loadingReply = true
+
try {
+ this.replyText = null
await this.$apollo.mutate({
mutation: gql`
mutation commentReply($input: ReplyCreateInput!) {
@@ -332,7 +345,6 @@ export default {
`,
variables: { input: replyInput }
})
- this.replyText = null
this.$mixpanel.track('Comment Action', { type: 'action', name: 'reply' })
} catch (e) {
this.$eventHub.$emit('notification', {
@@ -340,6 +352,8 @@ export default {
})
}
+ this.loadingReply = false
+
setTimeout(() => {
// Shhh.
// eslint-disable-next-line vue/no-mutating-props
diff --git a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue
index 20772f084..6c42e86bf 100644
--- a/packages/frontend/src/main/components/viewer/CommentsOverlay.vue
+++ b/packages/frontend/src/main/components/viewer/CommentsOverlay.vue
@@ -176,6 +176,7 @@ export default {
}
},
result({ data }) {
+ if(!data) return
for (let c of data.comments.items) {
c.expanded = false
c.hovered = false
@@ -201,6 +202,7 @@ export default {
}
},
updateQuery(prevResult, {subscriptionData}) {
+ if(!subscriptionData) return
let newComment = subscriptionData.data.commentActivity
newComment.expanded = false
diff --git a/packages/frontend/src/main/pages/stream/Branch.vue b/packages/frontend/src/main/pages/stream/Branch.vue
index 34ef2b55a..d4b74a45f 100644
--- a/packages/frontend/src/main/pages/stream/Branch.vue
+++ b/packages/frontend/src/main/pages/stream/Branch.vue
@@ -9,31 +9,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -60,27 +36,6 @@
xl="3"
>
-
-
@@ -104,10 +59,10 @@
@infinite="infiniteHandler"
>
- You've reached the end - this branch has no more commits.
+ You've reached the end - this branch has no more commits.
- You've reached the end - this branch has no more commits.
+ You've reached the end - this branch has no more commits.
diff --git a/packages/frontend/src/main/pages/stream/StreamHome.vue b/packages/frontend/src/main/pages/stream/StreamHome.vue
index 9a93fc365..57d5ec09e 100644
--- a/packages/frontend/src/main/pages/stream/StreamHome.vue
+++ b/packages/frontend/src/main/pages/stream/StreamHome.vue
@@ -2,18 +2,7 @@
-
-
-
-
+
@@ -39,7 +28,7 @@
md="4"
xl="12"
>
-
+
import('@/main/components/common/NoDataPlaceholder'),
ListItemCommit: () => import('@/main/components/stream/ListItemCommit'),
PreviewImage: () => import('@/main/components/common/PreviewImage'),
- StreamActivity: () => import('@/main/components/stream/Activity')
+ StreamActivity: () => import('@/main/components/stream/Activity'),
+ CommitPreviewCard: () => import('@/main/components/common/CommitPreviewCard'),
},
data() {
return {
@@ -141,6 +131,7 @@ export default {
referencedObject
createdAt
branchName
+ commentCount
}
}
}